From: Michael Tremer Date: Sun, 20 Nov 2011 17:31:01 +0000 (+0000) Subject: Fix reading SOLV cache for local packages. X-Git-Tag: 0.9.18~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7de935bf8d9dfe105435ad7c4d9eff6fb66a9baf;p=pakfire.git Fix reading SOLV cache for local packages. --- 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.