lib/oe/sbom30: Fix SHA256 hash dictionary
PATCH 1/1 lib/oe/sbom30: Fix SHA256 hash dictionary
Fixes a bug in the code that created the hash dictionary that was accidentally excluding items with a SHA256 hash instead of including them
Signed-off-by Joshua Watt <[email protected]>
--- meta/lib/oe/sbom30.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/sbom30.py +1 -1
@@ -195,7 +195,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): if not isinstance(v, oe.spdx30.Hash): continue - if v.algorithm == oe.spdx30.HashAlgorithm.sha256: + if v.algorithm != oe.spdx30.HashAlgorithm.sha256: continue self.by_sha256_hash.setdefault(v.hashValue, set()).add(obj)
Signature · 1 line
2.48.1