diff options
Diffstat (limited to 'bitbake/lib/bb/cache.py')
| -rw-r--r-- | bitbake/lib/bb/cache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index d805d46d07..d495f9e75a 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
| @@ -286,14 +286,14 @@ class Cache(object): | |||
| 286 | old_mtimes.append(newest_mtime) | 286 | old_mtimes.append(newest_mtime) |
| 287 | newest_mtime = max(old_mtimes) | 287 | newest_mtime = max(old_mtimes) |
| 288 | 288 | ||
| 289 | bNeedUpdate = True | 289 | cache_ok = True |
| 290 | if self.caches_array: | 290 | if self.caches_array: |
| 291 | for cache_class in self.caches_array: | 291 | for cache_class in self.caches_array: |
| 292 | if type(cache_class) is type and issubclass(cache_class, RecipeInfoCommon): | 292 | if type(cache_class) is type and issubclass(cache_class, RecipeInfoCommon): |
| 293 | cachefile = getCacheFile(self.cachedir, cache_class.cachefile) | 293 | cachefile = getCacheFile(self.cachedir, cache_class.cachefile) |
| 294 | bNeedUpdate = bNeedUpdate and (bb.parse.cached_mtime_noerror(cachefile) >= newest_mtime) | 294 | cache_ok = cache_ok and (bb.parse.cached_mtime_noerror(cachefile) >= newest_mtime) |
| 295 | cache_class.init_cacheData(self) | 295 | cache_class.init_cacheData(self) |
| 296 | if bNeedUpdate: | 296 | if cache_ok: |
| 297 | self.load_cachefile() | 297 | self.load_cachefile() |
| 298 | elif os.path.isfile(self.cachefile): | 298 | elif os.path.isfile(self.cachefile): |
| 299 | logger.info("Out of date cache found, rebuilding...") | 299 | logger.info("Out of date cache found, rebuilding...") |
