* [OE-core][PATCH] lib/oe/sbom30: Fix SHA256 hash dictionary
@ 2025-01-30 13:37 Joshua Watt
0 siblings, 0 replies; only message in thread
From: Joshua Watt @ 2025-01-30 13:37 UTC (permalink / raw)
To: openembedded-core; +Cc: Joshua Watt
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 <JPEWhacker@gmail.com>
---
meta/lib/oe/sbom30.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py
index f7c4b323d56..0595ebd41ca 100644
--- a/meta/lib/oe/sbom30.py
+++ b/meta/lib/oe/sbom30.py
@@ -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)
--
2.48.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-30 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-30 13:37 [OE-core][PATCH] lib/oe/sbom30: Fix SHA256 hash dictionary Joshua Watt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox