Author: kelmo-guest
Date: Mon Apr 13 14:19:05 2009
New Revision: 881
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=881
Log:
Make sure disable|enable action does not call insserv if it did not
alter any runlevel symlinks.
Modified:
trunk/src/insserv/debian/changelog
trunk/src/insserv/debian/update-rc.d-insserv
Modified: trunk/src/insserv/debian/changelog
URL:
http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=881&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Mon Apr 13 14:19:05 2009
@@ -22,12 +22,14 @@
* Add interface to disable|enable service symlinks for all Default-
Start runlevels or those specified on the command line. This is
analogous to the interface introduced to update-rc.d of 2.86.ds1-62.
+ * Make sure disable|enable action does not call insserv if it did not
+ alter any runlevel symlinks.
* Consolidate debian/insserv.dirs into debian/dirs, only one should
exist.
* Add debian/bash-completion and install it to /etc/bash_completion.d/
to enhance usability for bash shell users.
- -- Kel Modderman <[email protected]> Mon, 13 Apr 2009 02:58:51 +1000
+ -- Kel Modderman <[email protected]> Tue, 14 Apr 2009 00:18:12 +1000
insserv (1.12.0-4) unstable; urgency=low
Modified: trunk/src/insserv/debian/update-rc.d-insserv
URL:
http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/update-rc.d-insserv?rev=881&op=diff
==============================================================================
--- trunk/src/insserv/debian/update-rc.d-insserv (original)
+++ trunk/src/insserv/debian/update-rc.d-insserv Mon Apr 13 14:19:05 2009
@@ -116,6 +116,10 @@
push(@symlinks, $_) for glob("/etc/rc$lvl.d/[SK][0-9][0-9]$name");
}
+ if (!...@symlinks) {
+ error("no runlevel symlinks found, aborting!");
+ }
+
# Toggle S/K bit of script symlink.
for my $cur_lnk (@symlinks) {
my @new_lnk = split(//, $cur_lnk);
_______________________________________________
Initscripts-ng-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/initscripts-ng-commits