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

[SCM] Debian package checker branch, master, updated. 2.5.4-24-gf317c34



The following commit has been merged in the master branch:
commit f317c341ba038489ea5498d63a9725343ea548a3
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Dec 4 14:23:14 2011 +0100

    Keep auto-cleaned collections until all checks are done
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/debian/changelog b/debian/changelog
index 1237743..7b2820a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -31,6 +31,8 @@ lintian (2.5.5) UNRELEASED; urgency=low
       using --verbose option.  (Closes: #650433)
     + [NT] Fixed an issue where auto-clean would not see the real
       status of some collections.
+    + [NT] Keep auto-cleaned collections until all processables in
+      the group has been checked.
 
   * lib/Lintian/Collect/{Binary,Source}.pm:
     + [NT] Assume packages to be non-native when it cannot be
diff --git a/frontend/lintian b/frontend/lintian
index 55c734e..d9ab54c 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1642,18 +1642,23 @@ sub process_group {
             }
         }
         post_pkg_process_overrides($pkg_path);
+    } # end foreach my $proc ($group->get_processable())
 
-        if (!$keep_lab) {
+    if (!$keep_lab) {
+        # Invoke auto-clean now that the group has been checked
+        foreach my $proc ($group->get_processables()){
+            my $lpkg = $proc->lab_pkg();
             auto_clean_package($lpkg) or $exit_code = 2;
             # Update the status file as auto_clean_package may have removed some
             # collections
             unless ($lpkg->update_status_file) {
+                my $pkg_name = $proc->pkg_name;
                 warning("could not create status file for package $pkg_name: $!");
             }
 
         }
 
-    } # end foreach my $proc ($group->get_processable())
+    }
 
     return 1;
 }

-- 
Debian package checker


Reply to: