summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-16 21:55:19 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:42 +0000
commit570bec37a898fb502d166a22f20bdb1da8c21c38 (patch)
tree12d8d8ecee4a27172a33b95dffb1682e38bae7af /bitbake
parentacca3440579b5d5149bc951b6c6edafc018f45be (diff)
downloadopenembedded-core-570bec37a898fb502d166a22f20bdb1da8c21c38.tar.gz
openembedded-core-570bec37a898fb502d166a22f20bdb1da8c21c38.tar.bz2
openembedded-core-570bec37a898fb502d166a22f20bdb1da8c21c38.tar.xz
openembedded-core-570bec37a898fb502d166a22f20bdb1da8c21c38.zip
cache: don't write out the cache unnecessarily
If the only recipes's we reparsed this run were those flagged as not to be cached, there's no point in re-saving the cache, as those items won't be included anyway. (Bitbake rev: 1e0c4dbcbec886a30b89f8b4bb365c3c927ef609) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cache.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 3e2f698cf..23845bc07 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -247,7 +247,6 @@ class Cache(object):
cached = self.cacheValid(fn)
if not cached:
- self.cacheclean = False
logger.debug(1, "Parsing %s", fn)
datastores = self.load_bbfile(fn, appends, cfgData)
depends = set()
@@ -259,6 +258,11 @@ class Cache(object):
if depends and not variant:
data.setVar("__depends", depends)
info = RecipeInfo.from_metadata(fn, data)
+ if not info.nocache:
+ # The recipe was parsed, and is not marked as being
+ # uncacheable, so we need to ensure that we write out the
+ # new cache data.
+ self.cacheclean = False
self.depends_cache[virtualfn] = info
info = self.depends_cache[fn]