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

Bug#164214: dpkg: update-alternatives still wrong, methinks



This simple patch seems to fix both problems at once:

--- /usr/sbin/update-alternatives	Sun Jul 14 13:19:49 2002
+++ /home/itz/downloads/dpkg-1.10.4/usr/sbin/update-alternatives	Thu Oct 10 20:20:54 2002
@@ -309,7 +309,7 @@
 }
 
 if ($mode eq 'remove') {
-    if ($manual eq "manual" and $state ne "expected") {
+    if ($manual eq "manual" and defined $linkname and $linkname eq $apath) {
     	&pr("Removing manually selected alternative - switching to auto mode");
 	$manual= "auto";
     }


-- 
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
EngSoc adopts market economy: cheap is wasteful, efficient is expensive.



Reply to: