summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--debian/changelog2
-rwxr-xr-xscripts/update-alternatives.pl1
3 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ef6bbade0..0627a2140 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,13 @@
* lib/dpkg.h (ohshitvb): Remove function prototype.
* lib/ehandle.c (ohshitvb): Remove function definition.
+2009-02-06 Raphael Hertzog <hertzog@debian.org>
+
+ * scripts/update-alternatives.pl (set_links): Remove slavelinks
+ if needed as well. We create slave links automatically, we should
+ remove them in the same way. Otherwise --config or --set will let
+ dangling symlinks on the system.
+
2009-02-06 Guillem Jover <guillem@debian.org>
* man/deb.5: Add detailed information of the currently supported
diff --git a/debian/changelog b/debian/changelog
index 1f95e1122..9ec65aa70 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -129,6 +129,8 @@ dpkg (1.15.0) UNRELEASED; urgency=low
This also makes update-alternatives less noisy when this happens since we
don't call mv when we know that it's going to fail.
Closes: #98822
+ * Properly remove inappropriate slave links in update-alternatives even when
+ we switch to manual mode with --set or --config. Closes: #388313
[ Pierre Habouzit ]
* Add a --query option to update-alternatives. Closes: #336091, #441904
diff --git a/scripts/update-alternatives.pl b/scripts/update-alternatives.pl
index e6fca9f01..a4f3fa757 100755
--- a/scripts/update-alternatives.pl
+++ b/scripts/update-alternatives.pl
@@ -309,6 +309,7 @@ sub set_links($$)
$slavelinks[$slnum], $versions[$preferred]))
if $verbosemode > 0;
checked_rm("$altdir/$slave");
+ checked_rm($slavelinks[$slnum]);
}
}
}