From f3f13f48e214b25cf302b8ce397b630f5aa283fa Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Tue, 3 Dec 2024 15:37:07 -0700 Subject: [PATCH] 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 --- meta/lib/oe/sbom30.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3