summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-10 17:57:29 -0700
committerJoshua Lock <josh@linux.intel.com>2011-08-10 18:11:05 -0700
commitcc4158db215493ac270e27f92d977bcbe337f3db (patch)
treeed80b746712a0e56515cc81ff0f2a3b72207c351
parent396bbc220604c19ced4add30dd17f7f22d5e0022 (diff)
downloadbitbake-cc4158db215493ac270e27f92d977bcbe337f3db.tar.gz
bb/cache: rename confusing variable
The bNeedUpdate variable doesn't reflect its purpose, and doesn't match coding style (type encoded in variable name, camel case) - rename to cache_ok. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--lib/bb/cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index d805d46d0..d495f9e75 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -286,14 +286,14 @@ class Cache(object):
old_mtimes.append(newest_mtime)
newest_mtime = max(old_mtimes)
- bNeedUpdate = True
+ cache_ok = True
if self.caches_array:
for cache_class in self.caches_array:
if type(cache_class) is type and issubclass(cache_class, RecipeInfoCommon):
cachefile = getCacheFile(self.cachedir, cache_class.cachefile)
- bNeedUpdate = bNeedUpdate and (bb.parse.cached_mtime_noerror(cachefile) >= newest_mtime)
+ cache_ok = cache_ok and (bb.parse.cached_mtime_noerror(cachefile) >= newest_mtime)
cache_class.init_cacheData(self)
- if bNeedUpdate:
+ if cache_ok:
self.load_cachefile()
elif os.path.isfile(self.cachefile):
logger.info("Out of date cache found, rebuilding...")