Bug#968000: libconfig-model-dpkg-perl: Get policy release dates in another way

gregor herrmann gregoa at debian.org
Wed Sep 8 19:40:33 BST 2021


On Wed, 08 Sep 2021 18:46:19 +0200, Dominique Dumont wrote:

> Back to gregoa's proposal...

:)
 
> > - I'd appreciate review from dod
> This regexp may be too strict:
> $std_ver =~ s|^(\d+\.\d+\.\d+)\.\d+$|$1|;
> 
> I don't know if policy people are committed to used 4 digits version. 

Good catch!
 
> It may be better to extract the first 3 digits and call it a day.
> (i.e. $std_ver =~ s|^(\d+\.\d+\.\d+)|$1|; )

Ack.
 
> In any case, the program should croak if $std_ver is undef because the regexp does not match

Right.
 

Thanks for checking; changes pushed.


Feel free to upload if you are happy and have the time, or I can do
it tomorrow.


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20210908/e589677b/attachment-0001.sig>


More information about the pkg-perl-maintainers mailing list