diff options
| author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2024-07-19 20:52:37 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-21 11:08:11 +0100 |
| commit | 85dfbc15c88e20ebaf51d81d283bdb8835ed67d9 (patch) | |
| tree | 8222098d2543940f28a8e12f822d9cd7e8d06f88 | |
| parent | 773ea7ab0db2d2d22bd404ff2b676d67da3754e5 (diff) | |
| download | poky-85dfbc15c88e20ebaf51d81d283bdb8835ed67d9.tar.gz | |
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>
| -rw-r--r-- | meta/lib/oe/spdx30_tasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 59fd875074..7baa6be70e 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py | |||
| @@ -688,7 +688,7 @@ def create_spdx(d): | |||
| 688 | else: | 688 | else: |
| 689 | bb.fatal(f"Unknown detail '{detail}' for ignored {cve}") | 689 | bb.fatal(f"Unknown detail '{detail}' for ignored {cve}") |
| 690 | else: | 690 | else: |
| 691 | bb.fatal(f"Unknown CVE status {status}") | 691 | bb.fatal(f"Unknown {cve} status '{status}'") |
| 692 | 692 | ||
| 693 | if all_cves: | 693 | if all_cves: |
| 694 | pkg_objset.new_relationship( | 694 | pkg_objset.new_relationship( |
