chromium: get-commit-message.py: Support releases with 0 security fixes

Wow, a Chrome release without any (known!) security fixes:
https://chromereleases.googleblog.com/2022/03/stable-channel-update-for-desktop_20.html
This commit is contained in:
Michael Weiss
2022-04-10 21:44:01 +02:00
parent 9b0ef251b3
commit 688d6d2435
@@ -38,9 +38,9 @@ for entry in feed.entries:
else:
print('chromium: TODO -> ' + version + '\n')
print(url)
if fixes := re.search(r'This update includes .+ security fixes\.', content).group(0):
zero_days = re.search(r'Google is aware( of reports)? th(e|at) .+ in the wild\.', content)
if zero_days:
if fixes := re.search(r'This update includes .+ security fixes\.', content):
fixes = fixes.group(0)
if zero_days := re.search(r'Google is aware( of reports)? th(e|at) .+ in the wild\.', content):
fixes += " " + zero_days.group(0)
print('\n' + '\n'.join(textwrap.wrap(fixes, width=72)))
if cve_list := re.findall(r'CVE-[^: ]+', content):