* scripts/update-alternatives.pl: Ensure that a non-existant alternative result in automatic mode configuration.
@@ -3,6 +3,11 @@
* 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: Ensure that a non-existant
+ alternative result in automatic mode configuration.
2009-02-06 Raphael Hertzog <hertzog@debian.org>
* scripts/update-alternatives.pl: Change set_links() to
@@ -465,7 +465,7 @@ if (defined($linkname= readlink("$altdir/$name"))) {
# $action auto, install, remove, remove-all
# all independent
-if ($action eq 'auto') {
+if (($action eq 'auto') || ($state eq 'nonexistent')) {
pr(sprintf(_g("Setting up automatic selection of %s."), $name))
if $verbosemode > 0;
checked_rm("$altdir/$name.dpkg-tmp");