diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2025-01-30 06:37:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-05 12:49:55 +0000 |
commit | c8dda4c735fcbc20378c62a1233eb5118775c184 (patch) | |
tree | 2bc70516c4b4ed93dcdbcf778793706a4ad28d88 /meta/lib | |
parent | f16992eb568cf20ab3d048423e4e4bab39aed632 (diff) | |
download | poky-c8dda4c735fcbc20378c62a1233eb5118775c184.tar.gz |
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>
Diffstat (limited to 'meta/lib')
-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 f7c4b323d5..0595ebd41c 100644 --- a/meta/lib/oe/sbom30.py +++ b/meta/lib/oe/sbom30.py | |||
@@ -195,7 +195,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): | |||
195 | if not isinstance(v, oe.spdx30.Hash): | 195 | if not isinstance(v, oe.spdx30.Hash): |
196 | continue | 196 | continue |
197 | 197 | ||
198 | if v.algorithm == oe.spdx30.HashAlgorithm.sha256: | 198 | if v.algorithm != oe.spdx30.HashAlgorithm.sha256: |
199 | continue | 199 | continue |
200 | 200 | ||
201 | self.by_sha256_hash.setdefault(v.hashValue, set()).add(obj) | 201 | self.by_sha256_hash.setdefault(v.hashValue, set()).add(obj) |