]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cache: not existing cache file is not out of date
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Mon, 27 Oct 2008 13:39:22 +0000 (13:39 +0000)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Mon, 27 Oct 2008 13:39:22 +0000 (13:39 +0000)
lib/bb/cache.py

index fe38ea0aeec72f419e099ed8e426b94c84e09a39..5072ddfa466dc099fa33f989f62af4992432146d 100644 (file)
@@ -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):
         """