On Thu, 28 Nov 2024 02:47:41 +0200 Adrian Bunk wrote: [...] > apt knows what release a package is from, > that's also required for pinning. > > I don't know apt internals, I would guess there is some way to get apt > to tell you the release it downloaded the package from?
I think it's not that simple. First off, a package may have the same version in two (or more) releases: the most common case is when a version is both in unstable and testing, but other cases may include the same version in both stable and testing (and maybe even in unstable)... Which release should be considered in these cases, if apt-listbugs had to figure out the release by asking to APT ? Moreover, a package from, say, Debian testing could install just fine on a Debian system where most of the packages are from Debian stable (this is especially true, if stable has been recently released). The fact that a given package is from trixie does not necessarily mean that its trixie tagged bugs will affect the Debian system where it will be installed... Maybe a bug has been tagged trixie, because it shows up, when other packages are from trixie: it can happen that the same bug does not show up, when the package is installed on an otherwise bookworm system. In conclusion, deciding which release a given system is running is always a judgment call: an obvious one in many cases (if all your packages are from bookworm, without even backports, well... you are running bookworm!), less so in other cases (maybe you are running a mix of packages from bookworm, trixie, and sid... it's up to you to decide whether you consider your system as mostly bookworm, mostly trixie, or mostly sid... or perhaps you consider it as a mix, and don't want apt-listbugs to filter bugs by distribution release at all!). As I said, I will think about the possibility to add a further special value for AptListbugs::DistroRelease (and the -r command-line option) that causes apt-listbugs to read the distribution release from VERSION_CODENAME in /etc/os-release . Bye and thanks for caring about apt-listbugs! -- 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
pgpfCe4Hw2a5K.pgp
Description: PGP signature