Skip to content

Commit

Permalink
llvm: use versionhistory.googleapis.com over omahaproxy.appspot.com
Browse files Browse the repository at this point in the history
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 ungoogled-software/ungoogled-chromium#2260
  • Loading branch information
networkException committed Apr 8, 2023
1 parent 7fe0618 commit bd61cbd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pkgs/development/compilers/llvm/update-git.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@


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):
Expand Down

0 comments on commit bd61cbd

Please sign in to comment.