[SCM] Debian package checker branch, master, updated. 2.2.14-60-g58dc4f0
The following commit has been merged in the master branch:
commit 1836bfd3252fa742ac7d7c0469dd983c9a575479
Author: Russ Allbery <rra@debian.org>
Date: Sun Sep 13 22:40:34 2009 -0700
Fix handling of empty init script stop fields
Only check for a possible missing stop value if the list of stop
runlevels is non-empty.
diff --git a/checks/init.d b/checks/init.d
index 39b20c7..1b1d649 100644
--- a/checks/init.d
+++ b/checks/init.d
@@ -299,7 +299,7 @@ sub check_init {
# Scripts that stop in any of 0, 1, or 6 probably should stop in all
# of them, with some special exceptions.
my $stop = join(' ', sort keys %stop);
- if (defined($stop) and $stop ne '0 1 6') {
+ if (length($stop) > 0 and $stop ne '0 1 6') {
my $base = $initd_file;
$base =~ s,.*/,,;
unless (grep { $base eq $_ } qw(killprocs sendsigs halt reboot)) {
--
Debian package checker
Reply to: