Bug 13944 - alternatives-update не прав
: alternatives-update не прав
Status: CLOSED WORKSFORME
: Sisyphus
(All bugs in Sisyphus/alternatives)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2008-01-09 06:56 by
Modified: 2017-05-18 13:37 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-01-09 06:56:03
строка 150 файла alternatives-update содержит fgrep -qs " $name   "
/etc/alternatives/auto/*

\t$name\t здесь конфликтует с тем, что содержится в пакете links2. \t$name\t
мне
кажется слишком строгим и напрашивается на исправление.

Steps to Reproduce:
1.alternatives-manual /usr/bin/links /usr/bin/links2
2.alternatives-update
3. ls -l /usr/bin/links
Actual Results:  
elinks

Expected Results:  
links2
------- Comment #1 From 2017-05-18 13:37:32 -------
# alternatives-manual /usr/bin/links /usr/bin/links2
alternatives-manual: /usr/bin/links:/usr/bin/links2 - invalid alternative

# apt-get install links2

# alternatives-manual /usr/bin/links /usr/bin/elinks
alternatives-manual: don't forget to run alternatives-update to apply changes

# alternatives-update

Всё меняется как ожидается:

# epmqf links
Note: links is placed as /usr/bin/links
 # rpm -qf /usr/bin/links
warning: file /usr/bin/links is not owned by any package
Note: /usr/bin/links is link to /usr/bin/links-2.14
 # rpm -qf /usr/bin/links-2.14
links2-2.14-alt1