index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2025-01-05 19:07:56 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2025-01-05 19:07:56 +0100 |
commit | 4ee5232fc2d08093bd54288ceda47db10d8f83fe (patch) | |
tree | bb4862f22d75b4d34e7ce13a7de3e094352e357a /lib | |
parent | 3f5a59b26121cdc9b501771a4b7be01f831fcdd8 (diff) |
-rwxr-xr-x | lib/common-functions | 5 |
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 |