summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorKamel Bouhara (Schneider Electric) <kamel.bouhara@bootlin.com>2025-11-07 14:14:36 +0100
committerSteve Sakoman <steve@sakoman.com>2025-11-14 06:45:29 -0800
commitb16bf27386d3a411f452908c913aaf2335be0f22 (patch)
tree3df0a9165d53639b65ee326f2892003c07acb20d /meta/lib
parent11cd8498da86c61366e8701a8a49d60120c85248 (diff)
downloadpoky-b16bf27386d3a411f452908c913aaf2335be0f22.tar.gz
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. (From OE-Core rev: 17031d71cf4bc4fc19dd8a41c49b94e1f6a1edee) Signed-off-by: Kamel Bouhara (Schneider Electric) <kamel.bouhara@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/spdx30_tasks.py2
1 files changed, 1 insertions, 1 deletions
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):
405 name=file_name, 405 name=file_name,
406 software_primaryPurpose=primary_purpose, 406 software_primaryPurpose=primary_purpose,
407 software_downloadLocation=oe.spdx_common.fetch_data_to_uri( 407 software_downloadLocation=oe.spdx_common.fetch_data_to_uri(
408 fd, fd.name 408 fd, fd.names[0]
409 ), 409 ),
410 ) 410 )
411 ) 411 )