Skip to content

Commit

Permalink
chromium: get-commit-message.py: Deduplicate the CVE list
Browse files Browse the repository at this point in the history
  • Loading branch information
primeos committed Apr 14, 2021
1 parent ad43df1 commit de2edb8
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -6,6 +6,8 @@
import re
import textwrap

from collections import OrderedDict

import feedparser
import requests

Expand All @@ -30,6 +32,7 @@
fixes += " " + zero_days.group(0)
print('\n' + '\n'.join(textwrap.wrap(fixes, width=72)))
if cve_list := re.findall(r'CVE-[^: ]+', content):
cve_list = list(OrderedDict.fromkeys(cve_list)) # Remove duplicates but preserve the order
cve_string = ' '.join(cve_list)
print("\nCVEs:\n" + '\n'.join(textwrap.wrap(cve_string, width=72)))
break # We only care about the most recent stable channel update

0 comments on commit de2edb8

Please sign in to comment.