mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
lib/spdx30_tasks: improve error message
Improve 'unknown status' error message by including the CVE id and by quoting status field. Otherwise it might be troublesome to understand messages like 'do_create_spdx: Unknown CVE status ' (the status was empty). (From OE-Core rev: 45f64e69a63b544d560e2e5eb05a6e1f058c4da1) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
773ea7ab0d
commit
85dfbc15c8
@@ -688,7 +688,7 @@ def create_spdx(d):
|
||||
else:
|
||||
bb.fatal(f"Unknown detail '{detail}' for ignored {cve}")
|
||||
else:
|
||||
bb.fatal(f"Unknown CVE status {status}")
|
||||
bb.fatal(f"Unknown {cve} status '{status}'")
|
||||
|
||||
if all_cves:
|
||||
pkg_objset.new_relationship(
|
||||
|
||||
Reference in New Issue
Block a user