Bug 13944 - alternatives-update не прав
Summary: alternatives-update не прав
Status: CLOSED WORKSFORME
Alias: None
Product: Sisyphus
Classification: Development
Component: alternatives (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-09 06:56 MSK by ildar
Modified: 2017-05-18 13:37 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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