]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
spdx30_tasks: fix FetchData attribute in add_download_files
authorKamel Bouhara (Schneider Electric) <kamel.bouhara@bootlin.com>
Fri, 7 Nov 2025 13:14:36 +0000 (14:14 +0100)
committerSteve Sakoman <steve@sakoman.com>
Mon, 10 Nov 2025 15:03:45 +0000 (07:03 -0800)
commit17031d71cf4bc4fc19dd8a41c49b94e1f6a1edee
tree2b0883444509f8e5e84ae774b4a3a53c20e0dec9
parent9c9b9545049a2f6e5c99edcb079275d29a4d1ac6
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) <kamel.bouhara@bootlin.com>
meta/lib/oe/spdx30_tasks.py