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

Re: Help with uscan



Erik de Castro Lopo wrote:

> Hi all,
> 
> I'm trying to write a debian/watch file for an upstream package which 
> has a version number 1.2.3-rc4. For the debian package I need to drop
> the dash from the version number to give a debian version number of
> 1.2.3rc4.
> 
> Any clues on how to do this? If I just use:
> 
>    package-(.*).tar.gz
> 
> uscan complains that it can't find the current version (1.2.3rc4) on
> the server.

I have a solution.

The upstream version number is 0.5.2-rc3 which is invalid for a non-native
package and the current version of the package in debian, 0.5.2rc3,
doesn't compare correctly.

Therefore the debian package should be 0.5.2~rc3 (with a tilde) and the
debian/watch file should be:

    version=3
    opts=versionmangle=s/-rc/~rc/ \
	http://zhevny.com/specimen/files/ specimen-(.+).tar.gz

Thanks to all who responded, both here and on IRC.

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


Reply to: