Re: watch files
Martín Ferrari dijo [Fri, Dec 21, 2007 at 03:13:03PM -0300]:
> > http://search.cpan.org/dist/Module-Name/ .*/Module-Name-([[:digit:]].*)\.tar\.gz
>
> > * Is the current approach to create the version regex sane?
>
> I'd say:
>
> (v?\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip|rar)
>
> To match different types of archives, and to comply with the new perl
> versioning scheme. This is almost exactly what we're using for the
> qareport scripts.
umh... Sounds saner (I was about to suggest changing [[:digit:]].* to
[\d_.]+ - I'm a bit unsure about requiring the first \d, would .01
be a valid version? Or on requiring the version number to be two
characters wide - 1 is a valid version as well...)
About the list of supported schemes, I'd just drop rar, as it is a
very seldom used format, which requires a nonfree extractor most of
the time. The free unrar supports only ancient versions AFAIK.
And... Well, why are you using search.cpan.org instead of
www.cpan.org/modules/by-module/Module-Name ? It works, of course, but
it's easier just to copy the string over to wget ;-)
Greetings,
--
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5 27AF
Reply to:
- References:
- watch files
- From: gregor herrmann <gregor+debian@comodo.priv.at>
- Re: watch files
- From: "Martín Ferrari" <martin.ferrari@gmail.com>