From 58fe5ad52d94e26500fd1d3adb1a195d2703f2b0 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Mon, 27 Oct 2008 13:39:22 +0000 Subject: [PATCH] cache: not existing cache file is not out of date --- lib/bb/cache.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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): """ -- 2.47.3