]> code.ossystems Code Review - openembedded-core.git/commit
create-spdx: Fix key errors in do_create_runtime_spdx
authorAndres Beltran <abeltran@linux.microsoft.com>
Thu, 18 Nov 2021 00:04:02 +0000 (00:04 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Nov 2021 11:04:20 +0000 (11:04 +0000)
commit140ce5ef5e8f10251091660e3ef76f315f409076
tree4514eeadb87d0a058354c69b69e2d8906445a393
parentd6260decae6d2654f6e058f12ca02d582a8ef5a4
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 <abeltran@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx.bbclass