mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
bitbake/cache.py: Expansion of variables in skipped recipes should not be attempted as they can trigger errors
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -114,6 +114,15 @@ class RecipeInfo(namedtuple('RecipeInfo', recipe_fields)):
|
|||||||
if not pn in packages:
|
if not pn in packages:
|
||||||
packages.append(pn)
|
packages.append(pn)
|
||||||
|
|
||||||
|
skip = cls.getvar('__SKIPPED', metadata)
|
||||||
|
if skip:
|
||||||
|
return RecipeInfo(None, None, None, None, None,
|
||||||
|
None, None, None, None, None,
|
||||||
|
None, skip, None, None, None,
|
||||||
|
None, None, None, None, None,
|
||||||
|
None, None, None, None, None,
|
||||||
|
None, None)
|
||||||
|
|
||||||
return RecipeInfo(
|
return RecipeInfo(
|
||||||
tasks = tasks,
|
tasks = tasks,
|
||||||
basetaskhashes = cls.taskvar('BB_BASEHASH', tasks, metadata),
|
basetaskhashes = cls.taskvar('BB_BASEHASH', tasks, metadata),
|
||||||
@@ -124,7 +133,7 @@ class RecipeInfo(namedtuple('RecipeInfo', recipe_fields)):
|
|||||||
{'tasks': [], 'parents': {}},
|
{'tasks': [], 'parents': {}},
|
||||||
variants = cls.listvar('__VARIANTS', metadata) + [''],
|
variants = cls.listvar('__VARIANTS', metadata) + [''],
|
||||||
|
|
||||||
skipped = cls.getvar('__SKIPPED', metadata),
|
skipped = skip,
|
||||||
timestamp = bb.parse.cached_mtime(filename),
|
timestamp = bb.parse.cached_mtime(filename),
|
||||||
packages = cls.listvar('PACKAGES', metadata),
|
packages = cls.listvar('PACKAGES', metadata),
|
||||||
pn = pn,
|
pn = pn,
|
||||||
|
|||||||
Reference in New Issue
Block a user