From: Marcin Juszkiewicz Date: Mon, 27 Oct 2008 13:39:22 +0000 (+0000) Subject: cache: not existing cache file is not out of date X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58fe5ad52d94e26500fd1d3adb1a195d2703f2b0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cache: not existing cache file is not out of date --- diff --git a/lib/bb/cache.py b/lib/bb/cache.py index fe38ea0aeec..5072ddfa466 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): """