From: Stefan Herbrechtsmeier <stefan.herbrechtsme...@weidmueller.com>

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 <stefan.herbrechtsme...@weidmueller.com>
---

 meta/classes/create-spdx-2.2.bbclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/classes/create-spdx-2.2.bbclass 
b/meta/classes/create-spdx-2.2.bbclass
index 494bde117f..de993ff5bf 100644
--- a/meta/classes/create-spdx-2.2.bbclass
+++ b/meta/classes/create-spdx-2.2.bbclass
@@ -349,9 +349,10 @@ def add_download_packages(d, doc, recipe):
     import oe.spdx
     import oe.sbom
 
-    for download_idx, src_uri in enumerate(d.getVar('SRC_URI').split()):
-        f = bb.fetch2.FetchData(src_uri, d)
+    urls = d.getVar("SRC_URI").split()
+    fetcher = bb.fetch2.Fetch(urls, d)
 
+    for download_idx, f in enumerate(fetcher.expanded_urldata()):
         for name in f.names:
             package = oe.spdx.SPDXPackage()
             package.name = "%s-source-%d" % (d.getVar("PN"), download_idx + 1)
-- 
2.39.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#211130): 
https://lists.openembedded.org/g/openembedded-core/message/211130
Mute This Topic: https://lists.openembedded.org/mt/111123521/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to