From 7de935bf8d9dfe105435ad7c4d9eff6fb66a9baf Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 20 Nov 2011 17:31:01 +0000 Subject: [PATCH] Fix reading SOLV cache for local packages. --- python/pakfire/repository/index.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/pakfire/repository/index.py b/python/pakfire/repository/index.py index c43303f32..86dbe2ff1 100644 --- a/python/pakfire/repository/index.py +++ b/python/pakfire/repository/index.py @@ -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. -- 2.39.5