1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

bitbake/cache.py: Ensure skipped recipes make it into the cache to avoid reparsing

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2011-04-10 10:55:48 -07:00
parent c8928e93dd
commit 001a555c2f
3 changed files with 14 additions and 5 deletions
+8 -3
View File
@@ -129,7 +129,10 @@ class RecipeInfo(namedtuple('RecipeInfo', recipe_fields)):
@classmethod
def from_metadata(cls, filename, metadata):
if cls.getvar('__SKIPPED', metadata):
return cls.make_optional(skipped=True)
return cls.make_optional(skipped=True,
file_depends=metadata.getVar('__depends', False),
timestamp=bb.parse.cached_mtime(filename),
variants=cls.listvar('__VARIANTS', metadata) + [''])
tasks = metadata.getVar('__BBTASKS', False)
@@ -480,11 +483,13 @@ class Cache(object):
return bb.parse.cached_mtime_noerror(cachefile)
def add_info(self, filename, info, cacheData, parsed=None):
cacheData.add_from_recipeinfo(filename, info)
if not info.skipped:
cacheData.add_from_recipeinfo(filename, info)
if not self.has_cache:
return
if 'SRCREVINACTION' not in info.pv and not info.nocache:
if (info.skipped or 'SRCREVINACTION' not in info.pv) and not info.nocache:
if parsed:
self.cacheclean = False
self.depends_cache[filename] = info