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

Bug#164214: fix it _soon_



severity 164214 important
thanks

So, here is another patch developed independently from Ian a while ago.
I have submitted it to you but you seem to ignore everything that can
cause a need for real work. I am also changing the severity, even if you
do not like it. This simple nasty think has fucked up alternatives
entries for years, FIX. IT. SOON.

Gruss/Regards,
Eduard.
-- 
"In my opinion MS is a lot better at making money than it is at making
good operating systems" (Linus Torvalds, August 1997)
Index: debian/changelog
===================================================================
RCS file: /cvs/dpkg/dpkg/debian/changelog,v
retrieving revision 1.317
diff -u -r1.317 changelog
--- debian/changelog	12 Jan 2003 14:34:15 -0000	1.317
+++ debian/changelog	17 Jan 2003 09:17:08 -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
   * Add Solaris support to start-stop-daemon
   * Mention fakeroot in dpkg-source manpage. Closes: Bug#175897
 
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	17 Jan 2003 09:17:08 -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";
     }

Reply to: