[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.14-26-g1662c3e



The following commit has been merged in the master branch:
commit c66f81de2a2e4a174f6b615c3b5992373a10cac0
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Jun 30 22:20:52 2013 +0200

    c/systemd.pm: Improve systemctl regex and add line no to tag
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/systemd.pm b/checks/systemd.pm
index 612beaf..03c3d94 100644
--- a/checks/systemd.pm
+++ b/checks/systemd.pm
@@ -265,8 +265,8 @@ sub check_maintainer_scripts {
 
             # systemctl should not be called in maintainer scripts at all,
             # except for systemctl --daemon-reload calls.
-            if (m/\bsystemctl\b/ && !/daemon-reload/) {
-                tag 'maintainer-script-calls-systemctl', $file;
+            if (m/^(?:.+;)?\s*systemctl\b/ && !/daemon-reload/) {
+                tag 'maintainer-script-calls-systemctl', "$file:$.";
             }
         }
         close($sfd);

-- 
Debian package checker


Reply to: