Skip to content
Snippets Groups Projects
Commit b4c64791 authored by Andres Beltran's avatar Andres Beltran Committed by Richard Purdie
Browse files

create-spdx: Fix key errors in do_create_runtime_spdx


Currently, the do_create_runtime_spdx task fails with a Key Error if a
dependency is not contained in the package providers dictionary. Add a
check before using "dep" as a key in "providers".

(From OE-Core rev: ac9b387c5e19386ce3c5cd88b42dad24d25b0f70)

Signed-off-by: default avatarAndres Beltran <abeltran@linux.microsoft.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 140ce5ef5e8f10251091660e3ef76f315f409076)
Signed-off-by: default avatarAnuj Mittal <anuj.mittal@intel.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
parent 5bcb2b17
No related branches found
Tags
No related merge requests found
......@@ -675,6 +675,9 @@ python do_create_runtime_spdx() {
if dep in seen_deps:
continue
if dep not in providers:
continue
dep = providers[dep]
if not oe.packagedata.packaged(dep, localdata):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment