diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-16 21:55:19 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-11-21 11:20:35 -0700 |
commit | 1e0c4dbcbec886a30b89f8b4bb365c3c927ef609 (patch) | |
tree | 61c49ae6d292120b7119d26ea9181af71b54521b /lib/bb/cache.py | |
parent | 992cc252452221f5f23575e50eb67528b2838fdb (diff) | |
download | openembedded-core-contrib-1e0c4dbcbec886a30b89f8b4bb365c3c927ef609.tar.gz |
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.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/cache.py')
-rw-r--r-- | lib/bb/cache.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py index a39dc4e080..31d98d6e7e 100644 --- a/lib/bb/cache.py +++ b/lib/bb/cache.py @@ -233,7 +233,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() @@ -245,6 +244,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] |