]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib: sbom30: Fix agent reference
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 3 Dec 2024 22:37:07 +0000 (15:37 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2024 11:55:07 +0000 (11:55 +0000)
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 <JPEWhacker@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sbom30.py

index ea70f6fb69d1a36c981d018f394f87a62ab9e300..7d01715ce242d0b2509bb9f92075ab83ae1ff643 100644 (file)
@@ -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: