Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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