From: Ross Burton <ross.burton@arm.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 1/2] classes/sbom-cve-check: use named variables when iterating
Date: Wed, 1 Apr 2026 17:54:46 +0100 [thread overview]
Message-ID: <20260401165447.2852846-1-ross.burton@arm.com> (raw)
Little cleanups: unpack when iterating to avoid needing to use indexes,
and only update symlinks if update_link is not None.
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
meta/classes-recipe/sbom-cve-check.bbclass | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/meta/classes-recipe/sbom-cve-check.bbclass b/meta/classes-recipe/sbom-cve-check.bbclass
index 2e79dee5716..4244ee657a8 100644
--- a/meta/classes-recipe/sbom-cve-check.bbclass
+++ b/meta/classes-recipe/sbom-cve-check.bbclass
@@ -71,9 +71,9 @@ python do_sbom_cve_check() {
"--disable-auto-updates"
]
- for export_file in export_files:
+ for export_type, export_file, export_link in export_files:
cmd_args.extend(
- ["--export-type", export_file[0], "--export-path", export_file[1]]
+ ["--export-type", export_type, "--export-path", export_file]
)
cmd_args.extend(d.getVar("SBOM_CVE_CHECK_EXTRA_ARGS").split())
@@ -85,9 +85,10 @@ python do_sbom_cve_check() {
bb.error(f"sbom-cve-check failed: {e}")
return
- for export_file in export_files:
- bb.note(f"sbom-cve-check exported: {export_file[1]}")
- update_symlinks(export_file[1], export_file[2])
+ for export_type, export_file, export_link in export_files:
+ bb.note(f"sbom-cve-check exported: {export_file}")
+ if export_link:
+ update_symlinks(export_file, export_link)
}
addtask do_sbom_cve_check after do_create_image_sbom_spdx before do_build
--
2.43.0
next reply other threads:[~2026-04-01 16:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-01 16:54 Ross Burton [this message]
2026-04-01 16:54 ` [PATCH 2/2] classes/sbom-cve-check: add summary export type Ross Burton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260401165447.2852846-1-ross.burton@arm.com \
--to=ross.burton@arm.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox