mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 05:57:30 +00:00
llvm: use versionhistory.googleapis.com over omahaproxy.appspot.com
Version information previously available at omahaproxy.appspot.com will have to be retrieved from versionhistory.googleapis.com in the future. See https://groups.google.com/a/chromium.org/g/chromium-dev/c/uH-nFrOLWtE/m/PhUj_inyAQAJ See https://github.com/ungoogled-software/ungoogled-chromium/pull/2260
This commit is contained in:
parent
93357bed06
commit
7b9110eba4
@ -18,14 +18,10 @@ DEFAULT_NIX = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'git/defa
|
||||
|
||||
|
||||
def get_latest_chromium_build():
|
||||
HISTORY_URL = 'https://omahaproxy.appspot.com/history?os=linux'
|
||||
print(f'GET {HISTORY_URL}')
|
||||
with urlopen(HISTORY_URL) as resp:
|
||||
builds = csv.DictReader(iterdecode(resp, 'utf-8'))
|
||||
for build in builds:
|
||||
if build['channel'] != 'dev':
|
||||
continue
|
||||
return build
|
||||
RELEASES_URL = 'https://versionhistory.googleapis.com/v1/chrome/platforms/linux/channels/dev/versions/all/releases?filter=endtime=none&order_by=version%20desc'
|
||||
print(f'GET {RELEASES_URL}')
|
||||
with urlopen(RELEASES_URL) as resp:
|
||||
return json.load(resp)['releases'][0]
|
||||
|
||||
|
||||
def get_file_revision(revision, file_path):
|
||||
|
Loading…
Reference in New Issue
Block a user