Re: debian/watch sf redirector docs ?
Le lundi 11 mai 2009 à 12:33 +0000, Bart Martens a écrit :
> On Mon, May 11, 2009 at 12:04:33PM +0200, Olivier Berger wrote:
> > Hi.
> >
> > Is there any docs about the "Debian qa sf redirector" that can be used
> > in debian/watch (apart from man uscan) ?
>
> Not that I know of. DD's can read the source code.
>
And non-DDs ? ... something available somewhere in SVN on alioth by any
chance ?
> >
> > I'm looking for a way to state which "package" must be selected...
> >
> > For instance, for mantis, using
> > "http://sf.net/mantisbt/mantisbt-(.+)\.tar\.gz" would report versions
> > like 1.2.0a3 where as one would like to select only versions among the
> > ones available in package "mantis-stable" as listed in
> > http://sourceforge.net/project/showfiles.php?group_id=14963
>
> Here's a debian/watch that does that:
>
> version=3
> opts="uversionmangle=s/(\d)[\-_\.]?(rc\d+|pre-rc\d+|pre\d+a?)$/$1~$2/;s/[\-\.](source|Source|src|orig|unix)$//;s/-(bin|osx)$/~$1/;s/^v(\d)/$1/;" \
> http://sourceforge.net/project/showfiles.php?group_id=14963&package_id=166159 .*mantisbt[\-_](v?[\d\.]+(?:rc|rc\d+|pre-rc\d+|pre\d+a?|-unix|-source|-Source|-src|\.src|\.orig|[a-z]|b\d+|beta\d+-src|beta\d+)?)\.t.*
>
> The trick is to also specify "package_id=".
Yes, that's what I proposed in the fix for #528192 (with much less
regexes).
Thanks.
--
Olivier BERGER <olivier.berger@it-sudparis.eu>
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 1024D/6B829EEC
Ingénieur Recherche - Dept INF
Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)
Reply to: