]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib: sbom30: Fix import handling
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 3 Dec 2024 22:37:06 +0000 (15:37 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2024 11:55:07 +0000 (11:55 +0000)
Fixes a bug in the way that imports where being handled, due to a
misspelled variable

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sbom30.py

index 0a7b4c05fbe1d94a78f74b2342baf9428f07bd15..ea70f6fb69d1a36c981d018f394f87a62ab9e300 100644 (file)
@@ -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