Bug#517637: [uscan] auto-generalise or support variable in search regexes.

Charles Plessy plessy at debian.org
Wed Jul 31 22:34:34 UTC 2013


Le Wed, Jul 31, 2013 at 08:32:24AM +0200, Raphael Hertzog a écrit :
> 
> On Wed, 31 Jul 2013, Charles Plessy wrote:
> > just a brief comment while seeing this change to the Debian wiki page.  "Not
> > flexible enough" is very open-ended and calls for continuous updates of watch
> > files that work perfectly at the moment of their update.
> > 
> > I think that all of this suggests that we would benefit of having this
> > complexity transferred to uscan:  if the file looks like a compressed tar
> > archive, like 'foo.tar.gz', then look for other common compressions or formats
> > if no file is found. 
> 
> +1
> 
> Or maybe allow usage of some predefined variables:
> - $ARCHIVE_EXT -> (?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
> - $COMPRESSION_EXT -> (?:gz|bz2|xz)
> - $ANY_VERSION -> (?:\d\S*)
> 
> Can you file a bug report against uscan ?

Dear udev maintainers,

there was a short discussion on debian-qa about making smart guesses with uscan
when the tarball can not be found.  Paul pointed us at this bug report
(#517637), where auto-generalisation was alredy suggested.  For the record, I
forward here the suggestion of Raphaël, about using variables (see above).

Cheers,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan



More information about the devscripts-devel mailing list