summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-10 17:57:29 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-11 19:07:59 +0100
commiteeaa87f3ec72dd92847ae39bcacc8afc63d17985 (patch)
treecbd25f8abe334661393c12025cd1eb5e0a8ecbbe /bitbake
parent33dc927bef2b0d1fb6c72dee1005bef1e5395d6a (diff)
downloadast2050-yocto-poky-eeaa87f3ec72dd92847ae39bcacc8afc63d17985.zip
ast2050-yocto-poky-eeaa87f3ec72dd92847ae39bcacc8afc63d17985.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. (Bitbake rev: cc4158db215493ac270e27f92d977bcbe337f3db) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index d805d46..d495f9e 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/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...")
OpenPOWER on IntegriCloud