Bug 3467 - --obsolete does not remove link state for update-alternatives
Summary: --obsolete does not remove link state for update-alternatives
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: alternatives (show other bugs)
Version: unstable
Hardware: all Linux
: P4 minor
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-12 01:47 MSK by Mikhail Zabaluev
Modified: 2005-09-04 22:03 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Zabaluev 2004-01-12 01:47:59 MSK
Команда "alternatives-update --obsolete" стирает ссылку, но, похоже, не удаляет
её конфигурацию, запомненную update-alternatives в /var/lib/rpm/alternatives:

$ /usr/sbin/update-alternatives --install /usr/share/java/jaxp_parser_impl.jar
jaxp_parser_impl /usr/share/java/xerces-j.jar 120

$ /usr/sbin/update-alternatives --display jaxp_parser_impl
jaxp_parser_impl - status is auto.
 link currently points to /usr/share/java/xerces-j.jar
/usr/share/java/xerces-j.jar - priority 120
Current `best' version is /usr/share/java/xerces-j.jar.

$ /usr/sbin/alternatives-helper --install xerces-j -- jaxp_parser_impl

$ /usr/sbin/update-alternatives --display jaxp_parser_impl
jaxp_parser_impl - status is auto.
 link currently absent
/usr/share/java/xerces-j.jar - priority 120
Current `best' version is /usr/share/java/xerces-j.jar.

Если выполнить "/usr/sbin/update-alternatives --auto jaxp_parser_impl",
/usr/share/java/jaxp_parser_impl.jar будет удалён.





Expected Results:  
После выполнения alternatives-helper, update-alternatives не должен ничего знать
о существовании замещённой ссылки.
Comment 1 inger@altlinux.org 2004-06-08 14:53:58 MSD
эта фишка будет уже отсутвовать в следующем поколении альтернатив. Единственное её предназначение 
было убрать лишние файлы