mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
devtool: add support for multiple git url inside a cargo based recipe
Without that, the possible git urls that are in SRC_URI of a recipe are removed from SRC_URI during devtool process and so the cargo_common_do_patch_paths in cargo_common.bbclass cannot patch these packages to fetch them locally. I use a generic type name because I foresee this change will be useful for recipe that used a package manager (cargo but also npm) see https://bugzilla.yoctoproject.org/show_bug.cgi?id=11015 (From OE-Core rev: 474658a3681c343385c359a21c3693401217298d) Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ddf65370a9
commit
da1bcf0808
@@ -68,9 +68,7 @@ python () {
|
||||
for url in fetch.urls:
|
||||
url_data = fetch.ud[url]
|
||||
parm = url_data.parm
|
||||
if (url_data.type == 'file' or
|
||||
url_data.type == 'npmsw' or url_data.type == 'crate' or
|
||||
'type' in parm and parm['type'] == 'kmeta'):
|
||||
if url_data.type in ['file', 'npmsw', 'crate'] or parm.get('type') in ['kmeta', 'git-dependency']:
|
||||
local_srcuri.append(url)
|
||||
|
||||
d.setVar('SRC_URI', ' '.join(local_srcuri))
|
||||
|
||||
Reference in New Issue
Block a user