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

Bug#132632: dpkg: update-alternatives still not right, I think



tags 132632 pending
thanks

Previously Ian Zimmerman wrote:
> As far as I can see, no.

Ok, so that bug managed to resurface yet again. The patch below
finally fix it though.

Wichert.

Index: update-alternatives.pl
===================================================================
RCS file: /cvs/dpkg/dpkg/scripts/update-alternatives.pl,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- update-alternatives.pl      2002/02/02 17:03:26     1.25
+++ update-alternatives.pl      2002/02/06 23:33:07     1.26
@@ -249,12 +249,6 @@
         &quit("unable to remove $altdir/$name.dpkg-tmp: $!");
     $state= 'nonexistent';
     $manual= 'auto';
-} elsif ($state eq 'nonexistent') {
-    if ($manual eq 'manual') {
-        &pr("$altdir/$name has been deleted, returning to automatic selection.")
-          if $verbosemode > 0;
-        $manual= 'auto';
-    }
 }
 
 #   $manual      manual, auto
@@ -316,7 +310,7 @@
 }
 
 if ($mode eq 'remove') {
-    if ($manual eq "manual" and $state eq "expected") {
+    if ($manual eq "manual" and $state ne "expected") {
        &pr("Removing manually selected alternative - switching to auto mode");
        $manual= "auto";
     }


-- 
  _________________________________________________________________
 /wichert@wiggy.net         This space intentionally left occupied \
| wichert@deephackmode.org            http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |



Reply to: