mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
update_layer: fix duplicate PACKAGECONFIG items
Fix duplicate PackageConfig records being created each time a recipe is being updated - we need to delete the old ones first. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
6d31e6ebf7
commit
71206d54fe
|
@ -90,6 +90,7 @@ def update_recipe_file(tinfoil, data, path, recipe, layerdir_start, repodir):
|
||||||
static_build_dependency[0].recipes.add(recipe)
|
static_build_dependency[0].recipes.add(recipe)
|
||||||
|
|
||||||
# Handle the PACKAGECONFIG variables for this recipe
|
# Handle the PACKAGECONFIG variables for this recipe
|
||||||
|
PackageConfig.objects.filter(recipe=recipe).delete()
|
||||||
package_config_VarFlags = envdata.getVarFlags("PACKAGECONFIG")
|
package_config_VarFlags = envdata.getVarFlags("PACKAGECONFIG")
|
||||||
for key, value in package_config_VarFlags.items():
|
for key, value in package_config_VarFlags.items():
|
||||||
if key == "doc":
|
if key == "doc":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user