layerindex/update_layer: update src_uri from new recipe

A wrong Source URI may be displayed at the recipedetail view
if the related db field does not get updated routinely.

This change updates the src_uri db field when updating
recipe info from a new recipe file.

[#YOCTO 10899]

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
This commit is contained in:
Jose Lamego 2017-08-17 16:42:41 -05:00 committed by Aníbal Limón
parent 43c02acfa4
commit be4ce0edf3

View File

@ -73,6 +73,7 @@ def update_recipe_file(tinfoil, data, path, recipe, layerdir_start, repodir):
recipe.bugtracker = envdata.getVar("BUGTRACKER", True) or "" recipe.bugtracker = envdata.getVar("BUGTRACKER", True) or ""
recipe.provides = envdata.getVar("PROVIDES", True) or "" recipe.provides = envdata.getVar("PROVIDES", True) or ""
recipe.bbclassextend = envdata.getVar("BBCLASSEXTEND", True) or "" recipe.bbclassextend = envdata.getVar("BBCLASSEXTEND", True) or ""
recipe.src_uri = envdata.getVar("SRC_URI", True) or ""
# Handle recipe inherits for this recipe # Handle recipe inherits for this recipe
gr = set(data.getVar("__inherit_cache", True) or []) gr = set(data.getVar("__inherit_cache", True) or [])
lr = set(envdata.getVar("__inherit_cache", True) or []) lr = set(envdata.getVar("__inherit_cache", True) or [])