diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2024-12-03 15:37:07 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-05 17:07:10 +0000 |
commit | ddbbc9e53c8a8d4beb98c8cf91ce99017dbfa89b (patch) | |
tree | 97d823434aae0b5199d0bff7315ab46e2d3c769c /meta | |
parent | 813d6b296c1cf9d3ad7311fb596b154681eaa229 (diff) | |
download | poky-ddbbc9e53c8a8d4beb98c8cf91ce99017dbfa89b.tar.gz |
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
(From OE-Core rev: f3f13f48e214b25cf302b8ce397b630f5aa283fa)
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/sbom30.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py index ea70f6fb69..7d01715ce2 100644 --- a/meta/lib/oe/sbom30.py +++ b/meta/lib/oe/sbom30.py | |||
@@ -393,7 +393,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): | |||
393 | if ref_varname: | 393 | if ref_varname: |
394 | if ref_varname == varname: | 394 | if ref_varname == varname: |
395 | bb.fatal(f"{varname} cannot reference itself") | 395 | bb.fatal(f"{varname} cannot reference itself") |
396 | return new_agent(varname, creation_info=creation_info) | 396 | return self.new_agent(ref_varname, creation_info=creation_info) |
397 | 397 | ||
398 | import_key = self.d.getVar(f"{varname}_import") | 398 | import_key = self.d.getVar(f"{varname}_import") |
399 | if import_key: | 399 | if import_key: |