diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2024-12-03 15:37:06 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-05 17:07:10 +0000 |
commit | 813d6b296c1cf9d3ad7311fb596b154681eaa229 (patch) | |
tree | 04bed8319727d3ba71d3b44916159fa0bb7bfade | |
parent | 03753c52ddcaad494678572a8432f98113bf876c (diff) | |
download | poky-813d6b296c1cf9d3ad7311fb596b154681eaa229.tar.gz |
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>
-rw-r--r-- | meta/lib/oe/sbom30.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
364 | if not spdxid: | 364 | if not spdxid: |
365 | bb.fatal(f"{key} is not a valid SPDX_IMPORTS key") | 365 | bb.fatal(f"{key} is not a valid SPDX_IMPORTS key") |
366 | 366 | ||
367 | for i in self.docs.import_: | 367 | for i in self.doc.import_: |
368 | if i.externalSpdxId == spdxid: | 368 | if i.externalSpdxId == spdxid: |
369 | # Already imported | 369 | # Already imported |
370 | return spdxid | 370 | return spdxid |