#991217 reportbug: please deprioritize *-security in "apt policy"

#991217#5
Date:
2021-07-17 16:03:11 UTC
From:
To:
Hi!
If there are multiple releases with the same priority available, reportbug
chooses one based on some arbitrary order.  This results in output like on
this very bug report:
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')

By default, all present sources have priority 500 unless explicitly
configured differently, be it by the user (/etc/apt/preferences) or by the
Release file (like for experimental).  This makes sense for apt itself --
with repositories at equal priority, the package to install is determined
by version number.

But, for a human, "-security" is merely a few updated packages.

Thus, what about this hack: subtract 0.1 from each release's priority if it
matches "*-security", sort and choose, then round back to full integers
when displaying.


Meow!
-- Package-specific info:
** Environment settings:
EDITOR="jstar"
EMAIL="kilobyte@angband.pl"
INTERFACE="text"

** /home/kilobyte/.reportbugrc:
reportbug_version "7.10.3"
mode advanced
ui text