[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.49-147-g5e9a5c3

Andreas Beckmann anbe at debian.org
Mon Mar 4 09:54:42 UTC 2013


The following commit has been merged in the develop branch:
commit 5e9a5c3bb05bd611b0736be4ede045542d7c2974
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Mar 4 10:20:11 2013 +0100

    p-r: fix section caching
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/piuparts-report.py b/piuparts-report.py
index 9061df9..32f0118 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -614,13 +614,13 @@ class Section:
         elif section in self._packagedb_cache:
             self._package_databases[section] = self._packagedb_cache[section]
             return
-        elif not config["depends-sections"]:
-            # this is a base database eligible for caching
-            # only cache the most recent base database
-            self._packagedb_cache.clear()
 
         config = Config(section=section, defaults_section="global")
         config.read(CONFIG_FILE)
+        if not config["depends-sections"]:
+            # this is a base database eligible for caching
+            # only cache the most recent base database
+            self._packagedb_cache.clear()
         db = piupartslib.packagesdb.PackagesDB(prefix=section)
         self._package_databases[section] = db
         if config["depends-sections"]:

-- 
piuparts git repository



More information about the Piuparts-commits mailing list