]> git.ipfire.org Git - pakfire.git/commitdiff
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2011 19:05:19 +0000 (20:05 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2011 19:05:19 +0000 (20:05 +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()