Bug#750563: uscan regressed recently, adding all groups to the version number match

Adam D. Barratt adam at adam-barratt.org.uk
Wed Jun 4 14:58:06 UTC 2014


Control: tags -1 + moreinfo

On 2014-06-04 14:58, Matthias Klose wrote:
> libffi currently reports as version number 3.1.gz using
> 
>   ftp://sourceware.org/pub/libffi/libffi-(.*)\.tar.(bz2|gz|xz)
> 
> looks like every () group is added to the version number, this did work 
> before.

I get exactly the same result with wheezy's uscan:

/=====================================
| $ cat watch
| version=3
| ftp://sourceware.org/pub/libffi/libffi-(.*)\.tar.(bz2|gz|xz)
|
| $ uscan --watchfile watch --package foo --upstream-version 0
| foo: Newer version (3.1.gz) available on remote site:
|   ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz
|   (local version is 0)
| Not downloading as --package was used.  Use --download to force 
downloading.
|
| $ uscan --version
| This is uscan, from the Debian devscripts package, version 
2.12.6+deb7u2
\=====================================

This also matches uscan(1):

        Having  got  a list of `files' matching the pattern, their 
version num-
        bers are extracted by  treating  the  part  matching  the  Perl  
regexp
        groups,  demarcated  by  `(...)', joining them with `.' as a 
separator,
        and using the result as the version number of the  file.

Regards,

Adam



More information about the devscripts-devel mailing list