Package: dpkg Version: 1.16.9 Severity: normal [This may be a minor bug.]
Command: update-alternatives ---config etc. The displayed selection of auto mode with the same priority currently seems to be based on the first alphabetic order one. But the reality for the same priority case seems to keep already installed symlink untouched. So it may not be the first alphabetic order one. Auto mode should check current choice situation before the display to ensure users do not get confused by the displayed information. (Of course, another option is to prohibit using the same priority value by policy ...) Here is an example case: 1. install sysstat first 2. install atsar next 3. list with update-alternative etc. I wish to see: $ sudo update-alternatives --config sar There are 2 choices for the alternative sar (providing /usr/bin/sar). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/bin/sar.systat 0 auto mode 1 /usr/bin/atsar 0 manual mode 2 /usr/bin/sar.sysstat 0 manual mode But realities are: $ sudo update-alternatives --config sar There are 2 choices for the alternative sar (providing /usr/bin/sar). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/bin/atsar 0 auto mode 1 /usr/bin/atsar 0 manual mode 2 /usr/bin/sar.sysstat 0 manual mode $ ls -la /etc/alternatives/sar /usr/bin/atsar /usr/bin/sar*;cat /var/lib/dpkg/alternatives/sar lrwxrwxrwx 1 root root 20 Jun 8 2012 /etc/alternatives/sar -> /usr/bin/sar.sysstat -rwxr-xr-x 1 root root 36600 Mar 19 2006 /usr/bin/atsar lrwxrwxrwx 1 root root 21 Jun 8 2012 /usr/bin/sar -> /etc/alternatives/sar -rwxr-xr-x 1 root root 90600 May 21 2012 /usr/bin/sar.sysstat auto /usr/bin/sar sar.1.gz /usr/share/man/man1/sar.1.gz /usr/bin/atsar 0 /usr/share/man/man1/atsar.1.gz /usr/bin/sar.sysstat 0 /usr/share/man/man1/sar.sysstat.1.gz -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (10, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.7-trunk-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dpkg depends on: ii libbz2-1.0 1.0.6-4 ii libc6 2.13-38 ii liblzma5 5.1.1alpha+20120614-2 ii libselinux1 2.1.9-5 ii tar 1.26+dfsg-0.1 ii zlib1g 1:1.2.7.dfsg-13 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 0.9.7.7 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org