From: Joshua Watt Date: Tue, 3 Dec 2024 22:37:06 +0000 (-0700) Subject: lib: sbom30: Fix import handling X-Git-Tag: yocto-5.2~1100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10e2a1fbcf4828f3a6c7fd327976fefa3ffb252e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git lib: sbom30: Fix import handling Fixes a bug in the way that imports where being handled, due to a misspelled variable Signed-off-by: Joshua Watt Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py index 0a7b4c05fbe..ea70f6fb69d 100644 --- a/meta/lib/oe/sbom30.py +++ b/meta/lib/oe/sbom30.py @@ -364,7 +364,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): if not spdxid: bb.fatal(f"{key} is not a valid SPDX_IMPORTS key") - for i in self.docs.import_: + for i in self.doc.import_: if i.externalSpdxId == spdxid: # Already imported return spdxid