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:
Paul Eggleton 2017-12-21 16:05:23 +13:00
parent 6d31e6ebf7
commit 71206d54fe

View File

@ -90,6 +90,7 @@ def update_recipe_file(tinfoil, data, path, recipe, layerdir_start, repodir):
static_build_dependency[0].recipes.add(recipe)
# Handle the PACKAGECONFIG variables for this recipe
PackageConfig.objects.filter(recipe=recipe).delete()
package_config_VarFlags = envdata.getVarFlags("PACKAGECONFIG")
for key, value in package_config_VarFlags.items():
if key == "doc":