The following commit has been merged in the master branch:
commit c66f81de2a2e4a174f6b615c3b5992373a10cac0
Author: Niels Thykier <[email protected]>
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 <[email protected]>

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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to