Hi, On Sun, May 21, 2017 at 10:26:28PM +0200, Mattia Rizzolo wrote: > On Sun, May 21, 2017 at 09:05:38PM +0100, Adam D. Barratt wrote: > > Is there any particular reason you're not using something simpler, along > > the lines suggested by the manpage? This gives the expected result for > > me: > > > > version=3 > > http://sf.net/guitarix/ > > guitarix2(?:[_-]v?)?(\d.*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) > > btw, recentish uscan has support for subst patterns, which would reduce > all of that regexp to > guitarix2@ANY_VERSION@@ARCHIVE_EXT > which I kind of recommend to everybody…
I am happy to hear you like this feature. To be precise, you need tailing @: guitarix2@ANY_VERSION@@ARCHIVE_EXT@ But I intentionally made these to be a bit conservative grep. @ANY_VERSION@ doesn't match -v23 @ARCHIVE_EXT@ doesn't match tgz or tgx So far only one bug report requesting tgz. I may consider adding it after careful regression check in buster. At least ? Actual target file can be matched as above :-) guitarix2-0.35.3.tar.xz Osamu