From: Stefan Herbrechtsmeier <[email protected]>
Use the expanded list of FetchData objects covering both the given SRC_URLs and any additional implicit URLs that are added automatically by the appropriate FetchMethod. Signed-off-by: Stefan Herbrechtsmeier <[email protected]> --- meta/lib/oe/spdx30_tasks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 6a39246fe1..10b1b3fe14 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -343,9 +343,8 @@ def add_download_files(d, objset): urls = d.getVar("SRC_URI").split() fetch = bb.fetch2.Fetch(urls, d) - for download_idx, src_uri in enumerate(urls): - fd = fetch.ud[src_uri] - + for download_idx, fd in enumerate(fetch.expanded_urldata()): + src_uri = fd.url for name in fd.names: file_name = os.path.basename(fetch.localpath(src_uri)) if oe.patch.patch_path(src_uri, fetch, "", expand=False): -- 2.39.5
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#211126): https://lists.openembedded.org/g/openembedded-core/message/211126 Mute This Topic: https://lists.openembedded.org/mt/111123515/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
