From: Benjamin Robin (Schneider Electric) Date: Mon, 20 Apr 2026 07:44:34 +0000 (+0200) Subject: oe/sbom30: Fix undeclared variable in import_bitbake_build() X-Git-Tag: yocto-6.0~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6cb8f48581e14beb64041b4288d8dc4f28f92c2;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git oe/sbom30: Fix undeclared variable in import_bitbake_build() In the error path, deploy_dir_spdx variable was not defined. Signed-off-by: Benjamin Robin (Schneider Electric) Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py index f45d8f6773..5d020b934c 100644 --- a/meta/lib/oe/sbom30.py +++ b/meta/lib/oe/sbom30.py @@ -760,6 +760,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): bb_objset = self.import_bitbake_build_objset() build = find_bitbake_build(bb_objset) if build is None: + deploy_dir_spdx = self.d.getVar("DEPLOY_DIR_SPDX") bb.fatal(f"No build found in {deploy_dir_spdx}") return build