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

Bug#220044: update-alternatives does not restore (lost) link for slave files in target location



Package: dpkg
Version: 1.10.18
Severity: normal
File: /usr/sbin/update-alternatives

Recently I noticed that update-alternatives does not restore the symlink
of the slave file of some alternative. I stumbled about this while
looking for the disappeared /usr/share/man/man1/x-terminal-emulator.1.gz
symlink. It was just not there, maybe removed by some amoc-running
package. However update-alternative did not restore it when I choose
other x-session-manager alternatives that actually provided a slave file
(the manpage). So I experimented with u-a and found only one code part
around line 490 which is responsible for recreating that link. The
problems with it are:

 - it seems to only be executed in auto mode
 - something is broken few line below where the symlink is removed
   again (unlink, line 502). I suspect that there is something broken
   with the condition in line 499 but I could find out what exactly is
   that good for (jeez, where is fscking code documentation?!)
 
 I would have solved it know if I did not run out of time, sorry. Maybe
 some Perl coder (idealy the original author ;)) looks over it.

MfG,
Eduard.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux debian 2.4.23-pre2 #1 Mi Sep 3 16:09:39 CEST 2003 i686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8

Versions of packages dpkg depends on:
ii  dselect                     1.10.18      a user tool to manage Debian packa
hi  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an

-- no debconf information




Reply to: