Merge branch 'postpone-deps' (#5767) into backports-v4.6.0-2

(corresponds to merge commit 9befdb2c45)
This commit is contained in:
Daira Hopwood 2022-04-04 20:55:00 +01:00
commit f25941bd43
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,8 @@ native_ccache 4.5.1 2022-05-01
native_ccache 4.6 2022-05-01
# Clang is currently pinned to LLVM 13
native_clang 14.0.0 2022-05-01
libcxx 14.0.0 2022-05-01
# Rust is currently pinned to 1.59.0

View File

@ -199,6 +199,8 @@ class GithubTagReleaseLister:
url = "https://api.github.com/repos/" + safe(self.org) + "/" + safe(self.repo) + "/git/refs/tags"
r = requests.get(url, auth=requests.auth.HTTPBasicAuth(self.token.user(), self.token.password()))
if r.status_code != 200:
print("API request failed (error %d)" % (r.status_code,), file=sys.stderr)
print(r.text, file=sys.stderr)
raise RuntimeError("Request to GitHub tag API failed.")
json = r.json()
return list(map(lambda t: t["ref"].split("/")[-1], json))
@ -208,6 +210,8 @@ class BerkeleyDbReleaseLister:
url = "https://www.oracle.com/database/technologies/related/berkeleydb-downloads.html"
r = requests.get(url)
if r.status_code != 200:
print("API request failed (error %d)" % (r.status_code,), file=sys.stderr)
print(r.text, file=sys.stderr)
raise RuntimeError("Request to Berkeley DB download directory failed.")
page = r.text