create-spdx: Fix key errors in do_create_runtime_spdx
PATCH 1/1 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".
Signed-off-by Andres Beltran <[email protected]>
--- meta/classes/create-spdx.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/create-spdx.bbclass +3 -0
@@ -678,6 +678,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):
Signature · 1 line
2.17.1