From: Michael Tremer Date: Fri, 9 Dec 2011 16:11:48 +0000 (+0100) Subject: Don't extract cache if requested, but file is not available. X-Git-Tag: 0.9.19~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25b458d83162f843f40a3720aff0867861d57c8d;p=people%2Fms%2Fpakfire.git Don't extract cache if requested, but file is not available. --- diff --git a/python/pakfire/builder.py b/python/pakfire/builder.py index d587bd726..0aa29aa0e 100644 --- a/python/pakfire/builder.py +++ b/python/pakfire/builder.py @@ -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()