Hi, the patch attached to this mail should fix known problem with update-alternatives, especially bothering with recent X upgrades (resetting to auto mode). Gruss/Regards, Eduard. -- I am Hamlet of Borg. To assimilate or not to assimlate, that is the question.
Index: debian/changelog =================================================================== RCS file: /cvs/dpkg/dpkg/debian/changelog,v retrieving revision 1.316 diff -u -r1.316 changelog --- debian/changelog 7 Oct 2002 22:29:48 -0000 1.316 +++ debian/changelog 24 Oct 2002 07:10:39 -0000 @@ -13,6 +13,8 @@ * dpkg-statoverride did not check if a filemode was numeric. Closes: Bug#161156 * Update Catalan translation + * update-alternatives looks whether the target path exists on removing, + closes: #37254, #85502, #158973, #48895, #158973, #164214 -- Wichert Akkerman <wakkerma@debian.org> Sat, 22 Jun 2002 14:02:59 +0200 Index: scripts/update-alternatives.pl =================================================================== RCS file: /cvs/dpkg/dpkg/scripts/update-alternatives.pl,v retrieving revision 1.28 diff -u -r1.28 update-alternatives.pl --- scripts/update-alternatives.pl 28 Apr 2002 19:34:07 -0000 1.28 +++ scripts/update-alternatives.pl 24 Oct 2002 07:10:40 -0000 @@ -309,7 +309,7 @@ } if ($mode eq 'remove') { - if ($manual eq "manual" and $state ne "expected") { + if ($manual eq "manual" and $state ne "expected" and (grep(/^$apath$/, @versions))) { &pr("Removing manually selected alternative - switching to auto mode"); $manual= "auto"; }
Attachment:
pgpXYxTDezVFZ.pgp
Description: PGP signature