Package: reportbug Version: 7.10.3 Severity: wishlist 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="kilob...@angband.pl" INTERFACE="text" ** /home/kilobyte/.reportbugrc: reportbug_version "7.10.3" mode advanced ui text -- System Information: Debian Release: 11.0 APT prefers testing-security APT policy: (500, 'testing-security'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages reportbug depends on: ii apt 2.2.4 ii python3 3.9.2-3 ii python3-reportbug 7.10.3 ii sensible-utils 0.0.14 reportbug recommends no packages. Versions of packages reportbug suggests: pn claws-mail <none> pn debconf-utils <none> pn debsums <none> pn dlocate <none> pn emacs-bin-common <none> ii exim4 4.94.2-7 ii exim4-daemon-light [mail-transport-agent] 4.94.2-7 ii file 1:5.39-3 ii gnupg 2.2.27-2 pn python3-urwid <none> pn reportbug-gtk <none> ii xdg-utils 1.1.3-4.1 Versions of packages python3-reportbug depends on: ii apt 2.2.4 ii file 1:5.39-3 ii python3 3.9.2-3 ii python3-apt 2.2.1 ii python3-debian 0.1.39 ii python3-debianbts 3.1.0 ii python3-requests 2.25.1+dfsg-2 ii sensible-utils 0.0.14 python3-reportbug suggests no packages. -- no debconf information