]> git.ipfire.org Git - pakfire.git/commitdiff
Don't extract cache if requested, but file is not available.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2011 16:11:48 +0000 (17:11 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2011 16:11:48 +0000 (17:11 +0100)
python/pakfire/builder.py

index d587bd726146f1fdcdc9d12fadc688a608577dd1..0aa29aa0e1f922b85fbfe67c79a38159a5a6bc1f 100644 (file)
@@ -297,7 +297,7 @@ class BuildEnviron(object):
                if not requires:
                        requires = []
 
-               if self.use_cache:
+               if self.use_cache and os.path.exists(self.cache_file):
                        # If we are told to use the cache, we just import the
                        # file.
                        self.cache_extract()