summaryrefslogtreecommitdiffstats
path: root/lib/bb/cache.py
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2008-10-27 13:39:22 +0000
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2008-10-27 13:39:22 +0000
commit58fe5ad52d94e26500fd1d3adb1a195d2703f2b0 (patch)
tree09030879856b76350bf6f8701118a633c68f604b /lib/bb/cache.py
parent9ea8f9ea02fbe8954ade53f55f976d78834882af (diff)
downloadbitbake-58fe5ad52d94e26500fd1d3adb1a195d2703f2b0.tar.gz
cache: not existing cache file is not out of date
Diffstat (limited to 'lib/bb/cache.py')
-rw-r--r--lib/bb/cache.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index fe38ea0ae..5072ddfa4 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -95,7 +95,11 @@ class Cache:
bb.msg.note(1, bb.msg.domain.Cache, "Invalid cache found, rebuilding...")
self.depends_cache = {}
else:
- bb.msg.note(1, bb.msg.domain.Cache, "Out of date cache found, rebuilding...")
+ try:
+ os.stat( self.cachefile )
+ bb.msg.note(1, bb.msg.domain.Cache, "Out of date cache found, rebuilding...")
+ except OSError:
+ pass
def getVar(self, var, fn, exp = 0):
"""