Bug#164214: dpkg: update-alternatives still wrong, methinks
Also, taking this same example, when the vi link is configured to
point to elvis-tiny (which will _not_ be removed), update-alternatives
actually switches it to auto mode - also wrong:
kronstadt:~# update-alternatives --config vi
There are 2 alternatives which provide `vi'.
Selection Alternative
-----------------------------------------------
1 /bin/elvis-tiny
*+ 2 /usr/bin/elvisnox
Enter to keep the default[*], or type selection number: 1
Using `/bin/elvis-tiny' to provide `vi'.
kronstadt:~# dpkg --purge elvis
(Reading database ... 123999 files and directories currently installed.)
Removing elvis ...
Removing manually selected alternative - switching to auto mode
dpkg - warning: while removing elvis, directory `/etc/elvis' not empty so not removed.
Purging configuration files for elvis ...
kronstadt:~# cat /var/lib/dpkg/alternatives/vi
auto
/usr/bin/vi
vi.1.gz
/usr/share/man/man1/vi.1.gz
/bin/elvis-tiny
10
/usr/share/man/man1/elvis-tiny.1.gz
Sigh...
--
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087
EngSoc adopts market economy: cheap is wasteful, efficient is expensive.
Reply to: