mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
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 <JPEWhacker@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
03753c52dd
commit
813d6b296c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user