[SCM] Debian package checker branch, master, updated. 2.3.2-18-gee866ae
The following commit has been merged in the master branch:
commit cda1ed7836e10f6dd8d358dcee46443c1a1ee67a
Author: Raphael Geissert <atomo64@gmail.com>
Date: Sat Jan 30 01:10:19 2010 -0600
Refactor some init.d checks code
diff --git a/checks/init.d b/checks/init.d
index 2b4b77e..2536e8c 100644
--- a/checks/init.d
+++ b/checks/init.d
@@ -368,10 +368,10 @@ sub check_init {
}
# all tags included in file?
- $tag{'start'} or tag "init.d-script-does-not-implement-required-option", "/etc/init.d/$_ start";
- $tag{'stop'} or tag "init.d-script-does-not-implement-required-option", "/etc/init.d/$_ stop";
- $tag{'restart'} or tag "init.d-script-does-not-implement-required-option", "/etc/init.d/$_ restart";
- $tag{'force-reload'} or tag "init.d-script-does-not-implement-required-option", "/etc/init.d/$_ force-reload";
+ for my $option qw(start stop restart force-reload) {
+ $tag{$option}
+ or tag "init.d-script-does-not-implement-required-option", "/etc/init.d/$_ $option";
+ }
}
1;
--
Debian package checker
Reply to: