[devscripts] 04/06: debchange: twak the "automatic set targe distribution" regex so it can matches also backports
Mattia Rizzolo
mattia at debian.org
Sun Nov 12 11:55:29 UTC 2017
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 `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20171112/72d4b1af/attachment.sig>
More information about the devscripts-devel
mailing list