chromium: Make get-commit-message.py more robust
Not all updates contain security fixes.
This commit is contained in:
parent
9279d307f3
commit
17c4f6fa36
1 changed files with 11 additions and 11 deletions
|
@ -21,15 +21,15 @@ for entry in feed.entries:
|
|||
continue
|
||||
#print(url) # For debugging purposes
|
||||
version = re.search(r'\d+(\.\d+){3}', content).group(0)
|
||||
fixes = re.search(r'This update includes .+ security fixes\.', content).group(0)
|
||||
fixes = html_tags.sub('', fixes)
|
||||
zero_days = re.search(r'Google is aware of reports that .+ in the wild\.', content)
|
||||
if zero_days:
|
||||
fixes += " " + zero_days.group(0)
|
||||
cve_list = re.findall(r'CVE-[^: ]+', content)
|
||||
cve_string = ' '.join(cve_list)
|
||||
print('chromium: TODO -> ' + version + '\n')
|
||||
print(url + '\n')
|
||||
print('\n'.join(textwrap.wrap(fixes, width=72)) + '\n')
|
||||
print("CVEs:\n" + '\n'.join(textwrap.wrap(cve_string, width=72)))
|
||||
print('chromium: TODO -> ' + version)
|
||||
print('\n' + url)
|
||||
if fixes := re.search(r'This update includes .+ security fixes\.', content):
|
||||
fixes = html_tags.sub('', fixes.group(0))
|
||||
zero_days = re.search(r'Google is aware of reports that .+ in the wild\.', content)
|
||||
if zero_days:
|
||||
fixes += " " + zero_days.group(0)
|
||||
print('\n' + '\n'.join(textwrap.wrap(fixes, width=72)))
|
||||
if cve_list := re.findall(r'CVE-[^: ]+', content):
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue