On Sun, Nov 12, 2017 at 10:46:35AM +0000, Adam D. Barratt wrote: > I think it was actually correct, if you follow through the logic from > the parent block. > > The version is parsed as: > > $VERSION =~ /(.*?)([a-yA-Y][a-zA-Z]*|\d+)([+~])?$/i; > > with $start being set to the first captured group. Some quick testing > indicates that this results in, for example: > > 1.2-3+deb9u1 => 1.2-3+deb9u
Oh, wow.
Thank you.
So, I've now removed the \d+ from the $previus_dist regex again
> (Whether that's logical is an entirely different question.)
I suppose somebody had a good reason to write 75 lines of magic between
$VERSION and $previous_dist....
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
signature.asc
Description: PGP signature
_______________________________________________ devscripts-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel
