]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 22 Nov 2021 03:18:57 +0000 (11:18 +0800)
commitac9b387c5e19386ce3c5cd88b42dad24d25b0f70
tree3e5e51cfa86efa609101229693130a92b84366a3
parent123ee0fc0d1470427cc563f512f621e0172cc232
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>
(cherry picked from commit 140ce5ef5e8f10251091660e3ef76f315f409076)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/create-spdx.bbclass