layerindex: exclude vardeps from PACKAGECONFIG parsing
PATCH 1/1 layerindex: exclude vardeps from PACKAGECONFIG parsing
From: Jean-Pierre Geslin <[email protected]>
When the PACKAGECONFIG variable is defined with an anonymous Python function, it is mandatory to also set the vardeps flag to ensure that bitbake follows it correctly. This fix prevents the presence of vardeps in the PACKAGECONFIG web interface section.
Signed-off-by Jean-Pierre Geslin <[email protected]>
--- layerindex/recipeparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
layerindex/recipeparse.py +1 -1
@@ -184,7 +184,7 @@ def handle_recipe_depends(recipe, depends, packageconfig_opts, logger): dynamicdeps = list(recipe.dynamicbuilddep_set.values_list('name', flat=True)) PackageConfig.objects.filter(recipe=recipe).delete() for key, value in packageconfig_opts.items(): - if key == "doc": + if key in ["doc", "vardeps"]: continue package_config = PackageConfig() package_config.feature = key