diff mbox series

[v2,23/25] lib: oe: sbom30: Handle None in Relationship

Message ID 20260715164739.364323-24-JPEWhacker@gmail.com
State New
Headers show
Series Rework LICENSE to be SPDX License Expressions | expand

Commit Message

Joshua Watt July 15, 2026, 4:45 p.m. UTC
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>
---
 meta/lib/oe/sbom30.py | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py
index 0926266295..28778651d5 100644
--- a/meta/lib/oe/sbom30.py
+++ b/meta/lib/oe/sbom30.py
@@ -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))