]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
spdx30_tasks: fix condition in create_spdx
authorJoão Marcos Costa (Schneider Electric) <joaomarcos.costa@bootlin.com>
Thu, 2 Apr 2026 09:34:44 +0000 (11:34 +0200)
committerYoann Congal <yoann.congal@smile.fr>
Tue, 21 Apr 2026 06:37:55 +0000 (08:37 +0200)
Considering that *detail* is an actual variable, not a string, remove the
quotes to make the 'in' statement coherent.

Signed-off-by: João Marcos Costa (Schneider Electric) <joaomarcos.costa@bootlin.com>
Reviewed-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
meta/lib/oe/spdx30_tasks.py

index 9c422d17573011b3057a6992b8758e5d58899176..b43d626df3698c0c7e0c4a8d5bfa190580dfdc5b 100644 (file)
@@ -535,7 +535,7 @@ def create_spdx(d):
             # specified.
             if (
                 include_vex != "all"
-                and "detail" in ("fixed-version", "cpe-stable-backport")
+                and detail in ("fixed-version", "cpe-stable-backport")
             ):
                 bb.debug(1, "Skipping %s since it is already fixed upstream" % cve_id)
                 continue