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

[lintian] 01/02: checks/rules.pm: Use $cmd instead of $suffix.



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit 12b7836e6ab4602f08864801fd9b1fc0832d40c2
Author: Chris Lamb <lamby@debian.org>
Date:   Tue Jan 2 16:12:51 2018 +0000

    checks/rules.pm: Use $cmd instead of $suffix.
---
 checks/rules.pm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/checks/rules.pm b/checks/rules.pm
index 8c6b7bc..cde90f4 100644
--- a/checks/rules.pm
+++ b/checks/rules.pm
@@ -426,12 +426,12 @@ sub run {
         tag 'binary-arch-rules-but-pkg-is-arch-indep' if $nonempty;
     }
 
-    foreach my $suffix (qw(dh_clean dh_fixperms)) {
-        my $line = $overridden{$suffix};
-        tag "override_$suffix-does-not-call-$suffix", "(line $line)"
+    foreach my $cmd (qw(dh_clean dh_fixperms)) {
+        my $line = $overridden{$cmd};
+        tag "override_$cmd-does-not-call-$cmd", "(line $line)"
           if $line
-          and none { m/^\t\s*-?$suffix\b/ }
-        @{$rules_per_target{"override_$suffix"}};
+          and none { m/^\t\s*-?$cmd\b/ }
+        @{$rules_per_target{"override_$cmd"}};
     }
 
     # Make sure that all the required build dependencies are there.  Don't

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: