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

[SCM] Debian package checker branch, master, updated. 2.5.11-40-g1f3e632



The following commit has been merged in the master branch:
commit cd6edfb615c6aa69d16940d72d65a7832a132c30
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Jan 1 13:02:40 2013 +0100

    L::L::Manifest: Fix error in visit_all
    
    When all the needed keys for an exact match is given to visit_all,
    just visit that one entry and stop.  Previously it would get the depth
    wrong and error out.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Lintian/Lab/Manifest.pm b/lib/Lintian/Lab/Manifest.pm
index 34e2f37..3fd3575 100644
--- a/lib/Lintian/Lab/Manifest.pm
+++ b/lib/Lintian/Lab/Manifest.pm
@@ -293,6 +293,12 @@ sub visit_all {
     if (@keys) {
         $root = $self->_do_get ($self->{'state'}, @keys);
         return unless $root;
+        if (scalar @$qf == scalar @keys) {
+            # If we are given an exact match, just visit that and
+            # stop.
+            $visitor->($root, @keys);
+            return;
+        }
     } else {
         $root = $self->{'state'};
     }

-- 
Debian package checker


Reply to: