From: Kamel Bouhara (Schneider Electric) Date: Fri, 7 Nov 2025 13:14:36 +0000 (+0100) Subject: spdx30_tasks: fix FetchData attribute in add_download_files X-Git-Tag: 2024-04.14-scarthgap~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17031d71cf4bc4fc19dd8a41c49b94e1f6a1edee;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git spdx30_tasks: fix FetchData attribute in add_download_files The add_download_files() function incorrectly accessed fd.name, which does not exist on FetchData objects. Change to use fd.names[0] to correctly retrieve the first filename. This fixes AttributeError during SPDX document generation. Signed-off-by: Kamel Bouhara (Schneider Electric) --- diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 52329760b6..f6e6e545dc 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -405,7 +405,7 @@ def add_download_files(d, objset): name=file_name, software_primaryPurpose=primary_purpose, software_downloadLocation=oe.spdx_common.fetch_data_to_uri( - fd, fd.name + fd, fd.names[0] ), ) )