From 6f3c7f0c021ec45659dcdd5226962cc019cbcd09 Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Wed, 1 Aug 2007 23:45:22 -0500 Subject: BZ 250425. Set rebuild_cache=0 to disable rebuilding of cache. --- mock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mock.py b/mock.py index de3adb9..8e9e7c1 100644 --- a/mock.py +++ b/mock.py @@ -241,7 +241,7 @@ class Root: if cache_exists: cache_mtime = os.stat(self.cache_file)[stat.ST_MTIME] cache_age_days = (time.time() - cache_mtime) / (60 * 60 * 24) - if cache_age_days > self.config['max_cache_age_days']: + if self.config['max_cache_age_days'] and cache_age_days > self.config['max_cache_age_days']: self.config["rebuild_cache"] = True if cache_exists and not self.config['rebuild_cache']: -- cgit