'install' mode, but do not exit nor print an error if the link goup
file does not exist.
+2007-05-04 Guillem Jover <guillem@debian.org>
+
+ * scripts/update-alternatives.pl: Call read_link_group also in
+ 'install' mode, but do not exit nor print an error if the link goup
+ file does not exist.
+
2007-05-02 Guillem Jover <guillem@debian.org>
* scripts/update-alternatives.pl: Move the ENOENT errno check from
}
}
close(AF);
+ return 0;
} elsif ($! != ENOENT) {
quit(sprintf(_g("unable to open %s: %s"), "$admindir/$name", $!));
} elsif ($! == ENOENT) {
- pr(sprintf(_g("No alternatives for %s."), $name));
- exit 1;
+ return 1;
}
}
exit 0;
}
-if ($mode ne 'install') {
- read_link_group();
+if (read_link_group() && $mode ne 'install') {
+ pr(sprintf(_g("No alternatives for %s."), $name));
+ exit 1;
}
if ($mode eq 'display') {