]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
lib/oe/sbom30: Handle None in Relationship
authorJoshua Watt <JPEWhacker@gmail.com>
Wed, 15 Jul 2026 16:45:19 +0000 (10:45 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Jul 2026 19:51:33 +0000 (20:51 +0100)
The code to create relationships was designed to handle `None` in from
or to, but the `to_list()` function did not propagate the value for that
to work and instead raised a TypeError

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sbom30.py

index 0926266295ece9db43b55ac635d3a56570708a50..28778651d52b9c56b4717c276300ced49d4c7a1b 100644 (file)
@@ -180,6 +180,9 @@ def hash_id(_id):
 
 
 def to_list(l):
+    if l is None:
+        return None
+
     if isinstance(l, set):
         l = sorted(list(l))