[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

uscan, dfsg and changelog



Hi,

I have a source that needs to be repackaged due to some copyright
issues. From the Mentors FAQ, I found that I should name the package
"foo-1.2.3+dfsg-1". So, I made a repacking script (should it have a
predefined name, btw?) like:

----------------8<-----------------------
#!/bin/sh
ver=$2
orig_tar=$1
wd=mktmp -d
tar xf $orig_tar -C $wd 
rm -rf $wd/foo/non-free-part
tar czf foo-$ver+dfsg.orig.tar.gz -C $wd .
rm -rf $wd
----------------8<-----------------------

which creates the foo-1.2.3+dfsg.orig.tar.gz file. Then I put the
following into my debian/changelog:

----------------8<-----------------------
foo (1.2.3+dfsg-1) unstable; urgency=low

  * New package. Closes: #xxxxxx

 -- Ole Streicher <debian@liska.ath.cx>  Mon, 16 Jan 2012 12:37:00 +0100
----------------8<-----------------------

When I now run "uscan -debug -f" (to check the script), I get

uscan debug: [...]
-- Found the following matching hrefs:
   [...]
     http://foo.bar.edu/foo/foo-1.2.3.tar.gz
Newest version on remote site is 1.2.3, local version is 1.2.3+dfsg
 => remote site does not even have current version
-- Scan finished

so it obviously tries to put the +dfsg suffix to the download file.

How can I avoid that?

Best

Ole


Reply to: