[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#164214: dpkg: update-alternatives still wrong, methinks



Package: dpkg
Version: 1.10.4

kronstadt:~# cat /var/lib/dpkg/alternatives/vi
manual
/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
/usr/bin/elvisnox
120
/usr/share/man/man1/elvis.1.gz

kronstadt:~# file /usr/bin/vi
/usr/bin/vi: symbolic link to /etc/alternatives/vi
kronstadt:~# file /etc/alternatives/vi
/etc/alternatives/vi: symbolic link to /usr/bin/elvisnox
kronstadt:~# update-alternatives --remove vi /usr/bin/elvisnox
kronstadt:~# cat /var/lib/dpkg/alternatives/vi
manual
/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

kronstadt:~# file /usr/bin/vi
/usr/bin/vi: symbolic link to /etc/alternatives/vi
kronstadt:~# file /etc/alternatives/vi
/etc/alternatives/vi: symbolic link to /usr/bin/elvisnox

It seems "update-alternatives --remove" is simply ignored when the
alternative is in manual mode.  That's definitely not what I expect,
but perhaps it is my expectation that's wrong?  I thought it would
reset it to auto mode and point to the next best alternative
(elvis-tiny here).

There have been so many (and recurring) problems with u-a that I feel
it needs a rewrite.  And yes, I volunteer (but I am not official, so I
can't upload).


-- 
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: