Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1070394
| From | Dominique Dumont <dod@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#968000: libconfig-model-dpkg-perl: Get policy release dates in another way |
| Date | 2021-09-08 19:00 +0200 |
| Message-ID | <CV95v-4sS-3@gated-at.bofh.it> (permalink) |
| References | <ABkUh-5CF-3@gated-at.bofh.it> <CUTWN-2Qd-1@gated-at.bofh.it> <CV89r-3TE-3@gated-at.bofh.it> <AANbX-21b-15@gated-at.bofh.it> <CV89r-3TE-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Re-reading the thread of this bug, there's still the solution based on debian-policy. Even though there's still no file that provide the policy version, this one can be extracted from debian-policy changelog with something like: $ zcat /usr/share/doc/debian-policy/changelog.gz | head -1 | perl -n -E '/\((\d+\.\d+\.\d+)/; say $1;' 4.6.0 On the other hand, people might not like yet another dependency on cme. And it may be hard to explain a dependency on a pure doc package. And this will break in debian-slim container images because docs are not installed... oh well... :-/ Back to gregoa's proposal... On Wednesday, 8 September 2021 17:49:04 CEST gregor herrmann wrote: > Implemented in git, but not uploaded because > > - 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. It may be better to extract the first 3 digits and call it a day. (i.e. $std_ver =~ s|^(\d+\.\d+\.\d+)|$1|; ) In any case, the program should croak if $std_ver is undef because the regexp does not match > - and I discovered a wrinkle: Which you fixed... All the best
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#968000: libconfig-model-dpkg-perl: Get policy release dates in another way Felix Lechner <felix.lechner@lease-up.com> - 2021-09-08 02:50 +0200
Bug#968000: libconfig-model-dpkg-perl: Get policy release dates in another way gregor herrmann <gregoa@debian.org> - 2021-09-08 18:00 +0200
Bug#968000: libconfig-model-dpkg-perl: Get policy release dates in another way Felix Lechner <felix.lechner@lease-up.com> - 2021-09-08 18:40 +0200
Bug#968000: libconfig-model-dpkg-perl: Get policy release dates in another way Dominique Dumont <dod@debian.org> - 2021-09-08 19:00 +0200
Bug#968000: libconfig-model-dpkg-perl: Get policy release dates in another way gregor herrmann <gregoa@debian.org> - 2021-09-08 20:50 +0200
csiph-web