lol

Merge pull request #146805 from primeos/chromium

chromium: update.py: Download files from the main repository

authored by

Michael Weiss and committed by
GitHub
f7daa177 b8057de3

+4 -2
+4 -2
pkgs/applications/networking/browsers/chromium/update.py
··· 5 5 via upstream-info.json.""" 6 6 # Usage: ./update.py [--commit] 7 7 8 + import base64 8 9 import csv 9 10 import json 10 11 import re ··· 48 49 49 50 def get_file_revision(revision, file_path): 50 51 """Fetches the requested Git revision of the given Chromium file.""" 51 - url = f'https://raw.githubusercontent.com/chromium/chromium/{revision}/{file_path}' 52 + url = f'https://chromium.googlesource.com/chromium/src/+/refs/tags/{revision}/{file_path}?format=TEXT' 52 53 with urlopen(url) as http_response: 53 - return http_response.read() 54 + resp = http_response.read() 55 + return base64.b64decode(resp) 54 56 55 57 56 58 def get_matching_chromedriver(version):