On Wed, 27 Nov 2024 20:41:13 +0200 Adrian Bunk wrote: > On Sat, Nov 16, 2024 at 01:06:06AM +0100, Francesco Poli wrote: > >... > > First of all, I want to introduce a new APT configuration option named > > AptListbugs::DistroRelease (this can be set by the sysadmin in any APT > > configuration file, such as /etc/apt/apt.conf.d/10apt-listbugs ). > >... > > Manual maintainance by the sysadmin sounds like a bad idea to me, > using VERSION_CODENAME from /etc/os-release would be a better option. > > Perhaps with a way to override this default.
Hello Adrian, thanks for your followup. As I said, I don't want to force users to get this new feature, unless they explicitly want it. And I don't want to force users to get other effects, just because they want this new feature. In other words, this feature should be opt-in (and without side effects). Hence, I don't want to just read VERSION_CODENAME from /etc/os-release (which is always present in Debian boxes, since it is shipped in the essential package 'base-files') and enable the new feature for all users. Please also note that VERSION_CODENAME is not necessarily the correct value: for instance, one could have a system where base-files is from Debian stable, but a great number of packages are from Debian testing (in that case the sysadmin could decide that the most relevant release is "testing")... Moreover, VERSION_CODENAME does not distinguish between systems (mainly) running Debian testing, possibly with some packages from Debian unstable, and systems running Debian unstable. I can consider the idea to add another special value for AptListbugs::DistroRelease (and the -r command-line option). This special value could be "OS-RELEASE", meaning that the actual value will be read from VERSION_CODENAME in /etc/os-release I don't know when I will do so, though. > > >... > > Then, during its normal operation, apt-listbugs will check the tags of > > each bug. If the tags include some release tags (that is to say, tags > > that are equal to any of the codenames found in the output of > > 'distro-info --codename --all'), but not the codename corresponding to > > AptListbugs::DistroRelease (or to the -r option), then apt-listbugs > > will ignore the bug. > >... > > I wonder if it would be feasible to query UDD: > https://udd.debian.org/schema/udd.html > https://udd-mirror.debian.net/ [...] I don't know, but sure I won't introduce such a big change in apt-listbugs at this point of Debian trixie development. -- http://www.inventati.org/frx/ There's not a second to spare! To the laboratory! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
pgpG5yIr23QLy.pgp
Description: PGP signature