diff mbox series

[1/3] meta/lib/oe/cve_check.py: fix patched_cves not updated

Message ID 20250108154718.3031653-1-hongxu.jia@windriver.com
State New
Headers show
Series [1/3] meta/lib/oe/cve_check.py: fix patched_cves not updated | expand

Commit Message

Hongxu Jia Jan. 8, 2025, 3:47 p.m. UTC
Due to commit [cve-check: Rework patch parsing] applied, it missed to
update patched_cves dictionary if cve_id not in patched_cves

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/lib/oe/cve_check.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py
index 85a899a880..5c272ba4ff 100644
--- a/meta/lib/oe/cve_check.py
+++ b/meta/lib/oe/cve_check.py
@@ -170,7 +170,7 @@  def get_patched_cves(d):
         patch_file = bb.fetch.decodeurl(url)[2]
         for cve_id in parse_cves_from_patch_file(patch_file):
             if cve_id not in patched_cves:
-                {
+                patched_cves[cve_id] = {
                     "abbrev-status": "Patched",
                     "status": "fix-file-included",
                     "resource": [patch_file],