[SCM] Debian package checker branch, master, updated. 2.2.11-29-g22733cd
The following commit has been merged in the master branch:
commit bc99537a8281b5ba23ebab0b38520131cfaf9e2d
Author: Raphael Geissert <atomo64@gmail.com>
Date: Tue Jun 16 15:07:40 2009 -0500
Don't treat /etc/init.d/README as an init script
diff --git a/checks/init.d b/checks/init.d
index f134ed0..c2dd98a 100644
--- a/checks/init.d
+++ b/checks/init.d
@@ -160,7 +160,7 @@ for (keys %initd_postinst) {
# files actually installed in /etc/init.d should match our list :-)
opendir(INITD, "init.d") or fail("cannot read init.d directory: $!");
for (readdir(INITD)) {
- next if $_ eq '.' || $_ eq '..';
+ next if $_ eq '.' || $_ eq '..' || $_ eq 'README';
unless ($initd_postinst{$_}) {
tag "script-in-etc-init.d-not-registered-via-update-rc.d", "/etc/init.d/$_";
checkinit("init.d/$_");
diff --git a/t/tests/init.d-script-registration/debian/README b/t/tests/init.d-script-registration/debian/README
new file mode 100644
index 0000000..09dd11b
--- /dev/null
+++ b/t/tests/init.d-script-registration/debian/README
@@ -0,0 +1 @@
+Just a dummy file (normally with instructions), not an init script at all!
diff --git a/t/tests/init.d-script-registration/debian/debian/install b/t/tests/init.d-script-registration/debian/debian/install
index 57fadcb..dcfc064 100644
--- a/t/tests/init.d-script-registration/debian/debian/install
+++ b/t/tests/init.d-script-registration/debian/debian/install
@@ -1 +1,2 @@
foo.in /etc/init.d/
+README /etc/init.d/
diff --git a/t/tests/init.d-script-registration/debian/debian/rules b/t/tests/init.d-script-registration/debian/debian/rules
new file mode 100644
index 0000000..be15443
--- /dev/null
+++ b/t/tests/init.d-script-registration/debian/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+%:
+ dh $*
+
+binary:
+ dh $@ --until dh_fixperms
+ chmod -x debian/init.d-script-registration/etc/init.d/README
+ dh $@ --remaining
--
Debian package checker
Reply to: