The following commit has been merged in the master branch:
commit ecfb932b4c67da85f347710626d96c6a6d3adad5
Author: Niels Thykier <[email protected]>
Date:   Sun Jan 27 12:27:13 2013 +0100

    lintian,L::ProcGroup: Fix cache handling of L::ProcGroup
    
    Make L::ProccessableGroup cache the L::Collect::Group instance it
    creates.  Have the frontend ask it drop said instance when the entire
    group has been processed.
    
    Signed-off-by: Niels Thykier <[email protected]>

diff --git a/frontend/lintian b/frontend/lintian
index d1ec7d4..0faef6d 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1406,6 +1406,7 @@ sub clear_group_cache {
     foreach my $proc ($group->get_processables()){
         $proc->clear_cache;
     }
+    $group->clear_cache;
     return 1;
 }
 
diff --git a/lib/Lintian/ProcessableGroup.pm b/lib/Lintian/ProcessableGroup.pm
index 9801e55..8f5e394 100644
--- a/lib/Lintian/ProcessableGroup.pm
+++ b/lib/Lintian/ProcessableGroup.pm
@@ -306,6 +306,7 @@ sub info {
     my $info = $self->{info};
     if (! defined $info) {
         $info = Lintian::Collect::Group->new ($self);
+        $self->{info} = $info;
     }
     return $info;
 }

-- 
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