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

[lintian] 03/03: L::DepMap: The selected field is a set



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

nthykier pushed a commit to branch master
in repository lintian.

commit 401b80450be3e2b547fe04a749257ca9d7fdd821
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Aug 20 22:01:18 2013 +0200

    L::DepMap: The selected field is a set
    
    The value of keys in the 'selected' field is not used, so it is only
    used as a set.  Therefore, set the values to 1 rather than
    $complex_data_structure.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 lib/Lintian/DepMap.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Lintian/DepMap.pm b/lib/Lintian/DepMap.pm
index 21866c7..e4ea597 100644
--- a/lib/Lintian/DepMap.pm
+++ b/lib/Lintian/DepMap.pm
@@ -350,7 +350,7 @@ sub select {
     }
     return 0 if (exists($self->{'selected'}{$node}));
 
-    $self->{'selected'}{$node} = $self->{'nodes'}{$node};
+    $self->{'selected'}{$node} = 1;
 
     return 1;
 }

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


Reply to: