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

gregor herrmann gregoa at debian.org
Thu Aug 6 15:28:45 BST 2020


On Thu, 06 Aug 2020 15:43:02 +0200, Dominique Dumont wrote:

> > Attached is a script that extracts the release dates from the policy
> > changelog. It uses the network. The data will always be current.
> 
> If the source of information is Salsa, I'd rather use gitlab API to extract 
> the latest policy version from the tags with something like:
> 
> mojo get -r https://salsa.debian.org/api/v4/projects/234/repository/tags \
>   /0/name | perl -n -E '/(\d+\.\d+\.\d+)/; say $1;'

The problem I see here is that dynamically fetching the policy
version can't work during package builds / for tests; having the
version in a file was the big advantage of using the lintian data.

But yeah, at runtime it should be ok.

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
   `-   NP: Ben Weaver: Ballad of a thin man
-------------- 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/20200806/81e81bc2/attachment.sig>


More information about the pkg-perl-maintainers mailing list