diff mbox series

[scarthgap] spdx30_tasks: fix condition in create_spdx

Message ID 20260402093444.675082-1-joaomarcos.costa@bootlin.com
State New
Headers show
Series [scarthgap] spdx30_tasks: fix condition in create_spdx | expand

Commit Message

João Marcos Costa April 2, 2026, 9:34 a.m. UTC
From: João Marcos Costa (Schneider Electric) <joaomarcos.costa@bootlin.com>

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>
---
 meta/lib/oe/spdx30_tasks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py
index a8970dcca0..e7bb930b59 100644
--- a/meta/lib/oe/spdx30_tasks.py
+++ b/meta/lib/oe/spdx30_tasks.py
@@ -523,7 +523,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