Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2025-01-05 19:07:56 +0100
committerErich Eckner <git@eckner.net>2025-01-05 19:07:56 +0100
commit4ee5232fc2d08093bd54288ceda47db10d8f83fe (patch)
treebb4862f22d75b4d34e7ce13a7de3e094352e357a /lib
parent3f5a59b26121cdc9b501771a4b7be01f831fcdd8 (diff)
fall back to non-cached variant if cache has an errorHEADmaster
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/common-functions b/lib/common-functions
index f13b1f2..4ec35f3 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -212,6 +212,11 @@ make_source_info_using_cache() {
curl -LSs "https://buildmaster.archlinux32.org/pkginfo/${package}=${repository}=${git_revision}=${mod_git_revision}" \
>"${output}"
+
+ if grep -qxF 'curl: (22) The requested URL returned error: 500' "${output}"; then
+ >&2 echo 'cache returned error, falling back to make_source_info directly'
+ make_source_info "$1" "$2" "$3" "$4" "$5"
+ fi
}
# make_source_info $package $repository $git_revision $mod_git_revision $output