Merge pull request #130364 from primeos/chromium-update

chromium: get-commit-message.py: Improve the parsing

authored by Michael Weiss and committed by GitHub c6c4a3d4 e92f6aa3

+2 -2
+2 -2
pkgs/applications/networking/browsers/chromium/get-commit-message.py
··· 19 continue 20 url = requests.get(entry.link).url.split('?')[0] 21 content = entry.content[0].value 22 if re.search(r'Linux', content) is None: 23 continue 24 #print(url) # For debugging purposes 25 version = re.search(r'\d+(\.\d+){3}', content).group(0) 26 print('chromium: TODO -> ' + version) 27 print('\n' + url) 28 - if fixes := re.search(r'This update includes .+ security fixes\.', content): 29 - fixes = html_tags.sub('', fixes.group(0)) 30 zero_days = re.search(r'Google is aware( of reports)? that .+ in the wild\.', content) 31 if zero_days: 32 fixes += " " + zero_days.group(0)
··· 19 continue 20 url = requests.get(entry.link).url.split('?')[0] 21 content = entry.content[0].value 22 + content = html_tags.sub('', content) # Remove any HTML tags 23 if re.search(r'Linux', content) is None: 24 continue 25 #print(url) # For debugging purposes 26 version = re.search(r'\d+(\.\d+){3}', content).group(0) 27 print('chromium: TODO -> ' + version) 28 print('\n' + url) 29 + if fixes := re.search(r'This update includes .+ security fixes\.', content).group(0): 30 zero_days = re.search(r'Google is aware( of reports)? that .+ in the wild\.', content) 31 if zero_days: 32 fixes += " " + zero_days.group(0)