layerindex/update_layer: fix update src_uri from new recipe

Don't load all SRC_URI only first entry.

[YOCTO #10899]

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Jose Lamego 2017-08-17 20:04:03 -05:00 committed by Aníbal Limón
parent be4ce0edf3
commit 045f109415

View File

@ -73,7 +73,8 @@ 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 "" recipe.src_uri = re.match(
r'^(\S*).*', envdata.getVar("SRC_URI", True)).group(1) 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 [])