From 25b458d83162f843f40a3720aff0867861d57c8d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 9 Dec 2011 17:11:48 +0100 Subject: [PATCH] Don't extract cache if requested, but file is not available. --- python/pakfire/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5