From: Joshua Watt Date: Tue, 3 Dec 2024 22:37:07 +0000 (-0700) Subject: lib: sbom30: Fix agent reference X-Git-Tag: yocto-5.2~1099 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3f13f48e214b25cf302b8ce397b630f5aa283fa;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git lib: sbom30: Fix agent reference When a agent reference was being used, the code was not using the correct base variable to look up the agent Signed-off-by: Joshua Watt Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py index ea70f6fb69d..7d01715ce24 100644 --- a/meta/lib/oe/sbom30.py +++ b/meta/lib/oe/sbom30.py @@ -393,7 +393,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): if ref_varname: if ref_varname == varname: bb.fatal(f"{varname} cannot reference itself") - return new_agent(varname, creation_info=creation_info) + return self.new_agent(ref_varname, creation_info=creation_info) import_key = self.d.getVar(f"{varname}_import") if import_key: