cache.py: Don't error if a file doesn't exist, just mark the cache entry invalid
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 15 Sep 2006 15:34:54 +0000 (15:34 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 15 Sep 2006 15:34:54 +0000 (15:34 +0000)
lib/bb/cache.py

index e4985e4..49d92da 100644 (file)
@@ -192,6 +192,10 @@ class Cache:
         # Check dependencies are still valid
         depends = self.getVar("__depends", fn, True)
         for f,old_mtime in depends:
+            # Check if file still exists
+            if self.mtime(f) == 0:
+                return False
+
             new_mtime = bb.parse.cached_mtime(f)
             if (new_mtime > old_mtime):
                 bb.msg.debug(2, bb.msg.domain.Cache, "Cache: %s's dependency %s changed" % (fn, f))