Bug 13944

Summary: alternatives-update не прав
Product: Sisyphus Reporter: ildar <ildar>
Component: alternativesAssignee: placeholder <placeholder>
Status: CLOSED WORKSFORME QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: at, glebfm, lav, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description ildar 2008-01-09 06:56:03 MSK
строка 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 Vitaly Lipatov 2017-05-18 13:37:32 MSK
# 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