The isinstance expected 2 arguments
Signed-off-by: Hongxu Jia <[email protected]>
---
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 73a957a20c..f4cc1f49dd 100644
--- a/meta/lib/oe/sbom30.py
+++ b/meta/lib/oe/sbom30.py
@@ -631,7 +631,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet):
sha256_hash = bb.utils.sha256_file(path)
for f in self.by_sha256_hash.get(sha256_hash, []):
- if not isinstance(oe.spdx30.software_File):
+ if not isinstance(f, oe.spdx30.software_File):
continue
if purposes:
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#206383):
https://lists.openembedded.org/g/openembedded-core/message/206383
Mute This Topic: https://lists.openembedded.org/mt/109220136/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-