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

Bug#203791: Proposed patch to fix bug

After digging a little in the perl code, I guess I found a fix for the
bug. As $state="expected" indicates that the alternative I am removing
is the current active alternative, dpkg should switch to auto if this
exactly is the case. Find my patch attached.

diff -urN dpkg-1.10.10/scripts/update-alternatives.pl dpkg-1.10.10-my/scripts/update-alternatives.pl
--- dpkg-1.10.10/scripts/update-alternatives.pl	2002-04-28 21:34:07.000000000 +0200
+++ dpkg-1.10.10-my/scripts/update-alternatives.pl	2003-08-01 18:15:03.000000000 +0200
@@ -309,7 +309,7 @@
 if ($mode eq 'remove') {
-    if ($manual eq "manual" and $state ne "expected") {
+    if ($manual eq "manual" and $state eq "expected") {
     	&pr("Removing manually selected alternative - switching to auto mode");
 	$manual= "auto";

Reply to: