mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
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 (From OE-Core rev: 90765467e42241d8b572d035389d7062a0316a9f) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f16992eb56
commit
c8dda4c735
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user