Re: uscan, dfsg and changelog

2012-01-16 Thread gregor herrmann
On Mon, 16 Jan 2012 14:12:37 +0100, Olе Streicher wrote:

 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?

Cf. for example
http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/jifty.git;a=blob;f=debian/watch

Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT  SPI, fellow of the Free Software Foundation Europe
   `-   Warp 7 -- It's a law we can live with. 


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120116132303.gh7...@colleen.colgarra.priv.at



Re: uscan, dfsg and changelog

2012-01-16 Thread Ansgar Burchardt

Hi,

On 01/16/2012 02:12 PM, Olе Streicher wrote:

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?


uscan can mangle versions.  To strip the dfsg suffix, you need something 
like


  opts=dversionmangle=s/\+dfsg\d+$//

in your watch rule.

Regards,
Ansgar


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f142659.1010...@debian.org