[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-827-g219614b

Andreas Beckmann debian at abeckmann.de
Wed Jun 20 23:09:57 UTC 2012


The following commit has been merged in the develop branch:
commit ed336222afef2982fb8c945a77b7f8914347819b
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Wed Jun 20 20:34:27 2012 +0200

    lib/db: always run create_subdirs()
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index 666fb9c..d4f4ed8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -127,6 +127,7 @@ piuparts (0.45) UNRELEASED; urgency=low
     - Compute dependency cycles and test packages on such cycles if all
       non-circular dependencies are satisfied.
     - Consider any combination of two error states for the blocking count.
+    - Always run create_subdirs() during initialization.
   * piuparts-master.py:
     - Remove known_circular_depends handling.
     - Reduce logfile verboseness: do not include received logs.
diff --git a/piuparts-master.py b/piuparts-master.py
index 3f3a6a1..de745b9 100644
--- a/piuparts-master.py
+++ b/piuparts-master.py
@@ -127,7 +127,6 @@ class Master(Protocol):
             "untestable": self._untestable,
         }
         self._binary_db = piupartslib.packagesdb.PackagesDB(prefix=section)
-        self._binary_db.create_subdirs()
         self._binary_db.read_packages_file(packages_file)
         self._writeline("hello")
 
diff --git a/piupartslib/packagesdb.py b/piupartslib/packagesdb.py
index fb2bd47..8a79595 100644
--- a/piupartslib/packagesdb.py
+++ b/piupartslib/packagesdb.py
@@ -275,6 +275,7 @@ class PackagesDB:
         self._package_state = {}
         self.set_subdirs(ok="pass", fail="fail", evil="untestable",
                          reserved="reserved", morefail=["bugged", "affected"])
+        self.create_subdirs()
 
     def set_subdirs(self, ok=None, fail=None, evil=None, reserved=None, morefail=None):
         # Prefix all the subdirs with the prefix

-- 
piuparts git repository



More information about the Piuparts-commits mailing list