]> git.ipfire.org Git - pakfire.git/commitdiff
Fix reading SOLV cache for local packages.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Nov 2011 17:31:01 +0000 (17:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Nov 2011 17:31:01 +0000 (17:31 +0000)
python/pakfire/repository/index.py

index c43303f32eeccc897001989af001643e76a75ac2..86dbe2ff15c39c2f3fa83b2b7a07c3c18d4ddf5c 100644 (file)
@@ -413,8 +413,10 @@ class IndexLocal(Index):
        def init(self):
                self.db = database.DatabaseLocal(self.pakfire, self.repo)
 
-               if os.path.exists(PACKAGES_SOLV):
-                       self.read(PACKAGES_SOLV)
+               # Read SOLV cache file.
+               filename = os.path.join(self.pakfire.path, PACKAGES_SOLV)
+               if os.path.exists(filename):
+                       self.read(filename)
 
        def commit(self):
                # Write SOLV cache file.