diff mbox series

[layerindex-web] layerindex: exclude vardeps from PACKAGECONFIG parsing

Message ID 20250320110811.229287-1-jarsoper@gmail.com
State New
Headers show
Series [layerindex-web] layerindex: exclude vardeps from PACKAGECONFIG parsing | expand

Commit Message

Jean-Pierre Geslin March 20, 2025, 11:08 a.m. UTC
From: Jean-Pierre Geslin <jarsoper@gmail.com>

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 <jarsoper@gmail.com>
---
 layerindex/recipeparse.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/layerindex/recipeparse.py b/layerindex/recipeparse.py
index 9be6c10..d593def 100644
--- a/layerindex/recipeparse.py
+++ b/layerindex/recipeparse.py
@@ -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