From: Joshua Watt Date: Wed, 15 Jul 2026 16:45:19 +0000 (-0600) Subject: lib/oe/sbom30: Handle None in Relationship X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=063dc47ff65761109606fe58016cd3dbfe4dd801;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git lib/oe/sbom30: Handle None in Relationship 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 Signed-off-by: Richard Purdie --- 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))