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

[lintian] 05/05: Avoid shadowing a variable



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

broucaries-guest pushed a commit to branch master
in repository lintian.

commit 7202ee5aff3ebef693114326032ade71ef2c3d80
Author: Bastien ROUCARIÈS <roucaries.bastien@gmail.com>
Date:   Sat Jan 4 23:55:24 2014 +0100

    Avoid shadowing a variable
    
    Avoid shadowing $name
    
    Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
 checks/cruft.pm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/checks/cruft.pm b/checks/cruft.pm
index 738610e..b732000 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -406,22 +406,22 @@ sub find_cruft {
         # check non free file
         my $md5sum = $info->md5sums->{$name};
         if ($NON_DISTRIBUABLE_FILES->known($md5sum)) {
-            my $name   = $NON_DISTRIBUABLE_FILES->value($md5sum)->{'name'};
+            my $usualname   = $NON_DISTRIBUABLE_FILES->value($md5sum)->{'name'};
             my $reason = $NON_DISTRIBUABLE_FILES->value($md5sum)->{'reason'};
             my $link   = $NON_DISTRIBUABLE_FILES->value($md5sum)->{'link'};
             tag 'license-problem-md5sum-non-distribuable-file', $name,
-              "usual name is $name.", "$reason", "See also $link.";
+              "usual name is $usualname.", "$reason", "See also $link.";
 
             # should be stripped so pass other test
             next ENTRY;
         }
         unless ($info->is_non_free) {
             if ($NON_FREE_FILES->known($md5sum)) {
-                my $name   = $NON_FREE_FILES->value($md5sum)->{'name'};
+                my $usualname   = $NON_FREE_FILES->value($md5sum)->{'name'};
                 my $reason = $NON_FREE_FILES->value($md5sum)->{'reason'};
                 my $link   = $NON_FREE_FILES->value($md5sum)->{'link'};
                 tag 'license-problem-md5sum-non-free-file', $name,
-                  "usual name is $name.", "$reason",
+                  "usual name is $usualname.", "$reason",
                   "See also $link.";
             }
         }

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


Reply to: