diff options
Diffstat (limited to 'meta/lib/oe/spdx30_tasks.py')
| -rw-r--r-- | meta/lib/oe/spdx30_tasks.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 6b0aa137c4..8115088ab8 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py | |||
| @@ -503,7 +503,13 @@ def create_spdx(d): | |||
| 503 | if include_vex != "none": | 503 | if include_vex != "none": |
| 504 | patched_cves = oe.cve_check.get_patched_cves(d) | 504 | patched_cves = oe.cve_check.get_patched_cves(d) |
| 505 | for cve_id in patched_cves: | 505 | for cve_id in patched_cves: |
| 506 | mapping, detail, description = oe.cve_check.decode_cve_status(d, cve_id) | 506 | # decode_cve_status is decoding CVE_STATUS, so patch files need to be hardcoded |
| 507 | if cve_id in (d.getVarFlags("CVE_STATUS") or {}): | ||
| 508 | mapping, detail, description = oe.cve_check.decode_cve_status(d, cve_id) | ||
| 509 | else: | ||
| 510 | mapping = "Patched" | ||
| 511 | detail = "backported-patch" # fix-file-included is not available in scarthgap | ||
| 512 | description = None | ||
| 507 | 513 | ||
| 508 | if not mapping or not detail: | 514 | if not mapping or not detail: |
| 509 | bb.warn(f"Skipping {cve_id} — missing or unknown CVE status") | 515 | bb.warn(f"Skipping {cve_id} — missing or unknown CVE status") |
