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

Re: Problems with leftovers from unregistering alternatives



On 2006-04-26, Steve Langasek <vorlon@debian.org> wrote:
> Ok, if update-alternatives --list shows nothing, and symlinks are left in
> place on the filesystem, that sounds like a bug in u-a to me.

But shouldn't a bug in u-a be easy to reproduce ?

I tried something minimal:

root@pusling:/# for i in 1 4 2 3 ; do touch /tmp/${i}; update-alternatives --install /tmp/alt-test alt-test /tmp/${i} 10; done
root@pusling:/# update-alternatives display alt-test
update-alternatives: unknown argument `display'
root@pusling:/# update-alternatives --display alt-test
alt-test - status is auto.
 link currently points to /tmp/1
/tmp/1 - priority 10
/tmp/4 - priority 10
/tmp/2 - priority 10
/tmp/3 - priority 10
Current `best' version is /tmp/1.
root@pusling:/# update-alternatives --list alt-test
/tmp/1
/tmp/4
/tmp/2
/tmp/3
root@pusling:/# for i in 1 2 3 4 ; do  update-alternatives --remove alt-test /tmp/${i} ; done
root@pusling:/# update-alternatives --display alt-test
No alternatives for alt-test.
root@pusling:/# update-alternatives --list alt-test
root@pusling:/#                           

where update-alternatives behaves like expected.



/Sune



Reply to: