From 1f07faf3dce25bfcaf2c5c8f6652934baeed4db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20Costa=20=28Schneider=20Electric=29?= Date: Thu, 2 Apr 2026 11:34:44 +0200 Subject: [PATCH] spdx30_tasks: fix condition in create_spdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Considering that *detail* is an actual variable, not a string, remove the quotes to make the 'in' statement coherent. (From OE-Core rev: 8071a93c6b619dc9fcc2a7f1bcf94994499defbe) Signed-off-by: João Marcos Costa (Schneider Electric) Reviewed-by: Joshua Watt Signed-off-by: Yoann Congal Signed-off-by: Paul Barker --- meta/lib/oe/spdx30_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 9c422d1757..b43d626df3 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -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