From 813d6b296c1cf9d3ad7311fb596b154681eaa229 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Tue, 3 Dec 2024 15:37:06 -0700 Subject: lib: sbom30: Fix import handling Fixes a bug in the way that imports where being handled, due to a misspelled variable (From OE-Core rev: 10e2a1fbcf4828f3a6c7fd327976fefa3ffb252e) Signed-off-by: Joshua Watt Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/lib/oe/sbom30.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py index 0a7b4c05fb..ea70f6fb69 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 -- cgit v1.2.3-54-g00ecf