File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -599,6 +599,7 @@ python do_create_spdx() {
599599 # Some CVEs may be patched during the build process without incrementing the version number,
600600 # so querying for CVEs based on the CPE id can lead to false positives. To account for this,
601601 # save the CVEs fixed by patches to source information field in the SPDX.
602+ recipe . sourceInfo = ""
602603 patched_cves = oe . cve_check . get_patched_cves (d )
603604 patched_cves = list (patched_cves )
604605 patched_cves = ' ' . join (patched_cves )
@@ -611,10 +612,9 @@ python do_create_spdx() {
611612 if ignored_cves :
612613 if patched_cves :
613614 recipe . sourceInfo += "; "
614- else :
615- recipe . sourceInfo = ""
616615 recipe . sourceInfo += "CVEs ignored: " + ignored_cves
617616
617+
618618 cpe_ids = oe . cve_check . get_cpe_ids (d . getVar ("CVE_PRODUCT" ), d . getVar ("CVE_VERSION" ))
619619 if cpe_ids :
620620 for cpe_id in cpe_ids :
You can’t perform that action at this time.
0 commit comments