diff options
| -rw-r--r-- | meta/classes/cve-check.bbclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 33d41b912d..6e10dd915a 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass | |||
| @@ -343,17 +343,18 @@ def check_cves(d, cve_data): | |||
| 343 | for cverow in cve_cursor: | 343 | for cverow in cve_cursor: |
| 344 | cve = cverow[0] | 344 | cve = cverow[0] |
| 345 | 345 | ||
| 346 | # Write status once only for each product | ||
| 347 | if not cves_in_product: | ||
| 348 | cves_status.append([product, True]) | ||
| 349 | cves_in_product = True | ||
| 350 | cves_in_recipe = True | ||
| 351 | |||
| 346 | if cve_is_ignored(d, cve_data, cve): | 352 | if cve_is_ignored(d, cve_data, cve): |
| 347 | bb.note("%s-%s ignores %s" % (product, pv, cve)) | 353 | bb.note("%s-%s ignores %s" % (product, pv, cve)) |
| 348 | continue | 354 | continue |
| 349 | elif cve_is_patched(d, cve_data, cve): | 355 | elif cve_is_patched(d, cve_data, cve): |
| 350 | bb.note("%s has been patched" % (cve)) | 356 | bb.note("%s has been patched" % (cve)) |
| 351 | continue | 357 | continue |
| 352 | # Write status once only for each product | ||
| 353 | if not cves_in_product: | ||
| 354 | cves_status.append([product, True]) | ||
| 355 | cves_in_product = True | ||
| 356 | cves_in_recipe = True | ||
| 357 | 358 | ||
| 358 | vulnerable = False | 359 | vulnerable = False |
| 359 | ignored = False | 360 | ignored = False |
