[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51

Andreas Beckmann anbe at debian.org
Wed May 15 10:09:52 UTC 2013


The following commit has been merged in the master branch:
commit 09b8cb22106af7b20cf1c7c7ba8f521a2fada6a8
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun Apr 14 13:49:18 2013 +0200

    p-r,dwke,lib/db: add explicit compute_package_states()
    
    this call must happen whit CWD == master-directory
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/master-bin/detect_well_known_errors b/master-bin/detect_well_known_errors
index 5cf0577..6ca072f 100755
--- a/master-bin/detect_well_known_errors
+++ b/master-bin/detect_well_known_errors
@@ -457,6 +457,7 @@ def process_section( section, config, problem_list,
         pkgsdb.read_packages_file(pkg_fl)
         pkg_fl.close()
 
+        pkgsdb.compute_package_states()
         pkgsdb.calc_rrdep_counts()
 
         os.chdir(oldcwd)
diff --git a/piuparts-report.py b/piuparts-report.py
index c364b9f..f1ebfdb 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -599,6 +599,7 @@ class Section:
         self._package_databases = {}
         self._load_package_database(section)
         self._binary_db = self._package_databases[section]
+        self._binary_db.compute_package_states()
         self._binary_db.calc_rrdep_counts()
         os.chdir(oldcwd)
 
diff --git a/piupartslib/packagesdb.py b/piupartslib/packagesdb.py
index 7ef0da5..ffa2f62 100644
--- a/piupartslib/packagesdb.py
+++ b/piupartslib/packagesdb.py
@@ -571,6 +571,10 @@ class PackagesDB:
         for state in self._states:
             self._in_state[state].sort()
 
+    def compute_package_states(self):
+        # this must be called with cwd == master-directory
+        self._compute_package_states()
+
     def get_states(self):
         return self._states
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list