index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2023-06-29 13:07:43 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2023-06-29 13:07:43 +0200 |
commit | b8d227f4562e3da8f3d8a6bd759c27691f15f654 (patch) | |
tree | 6d160c432259cf8be68c5d1094203ceaf38210cf | |
parent | 012b37d32903c637cce7cbe66eb68f1e62724958 (diff) |
-rwxr-xr-x | lib/common-functions | 11 | ||||
-rwxr-xr-x | lib/mysql-functions | 2 |
diff --git a/lib/common-functions b/lib/common-functions index b0bb362..f97b02b 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -204,6 +204,17 @@ str_to_regex() { # make_source_info $package $repository $git_revision $mod_git_revision $output # create .SRCINFO from PKGBUILD within git repositories, output to $output +make_source_info_using_cache() { + local package="$1" + local repository="$2" + local git_revision="$3" + local mod_git_revision="$4" + local output="$5" + + curl -LSs "https://buildmaster.archlinux32.org/pkginfo/${PACKAGE}-${REPOSITORY}-${GIT_REVISION}-${MOD_GIT_REVISION}" \ + >"${output}" +} + make_source_info() { local package="$1" diff --git a/lib/mysql-functions b/lib/mysql-functions index b9f3a1c..519cf59 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -231,7 +231,7 @@ mysql_generate_package_metadata() { temp_dir=$(mktemp -d 'tmp.mysql-functions.mysql_generate_package_metadata.XXXXXXXXXX' --tmpdir) trap 'rm -rf --one-file-system "${temp_dir}"' EXIT - if ! make_source_info "${package}" "${repository}" "${git_revision}" "${mod_git_revision}" "${temp_dir}/SRCINFO"; then + if ! make_source_info_using_cache "${package}" "${repository}" "${git_revision}" "${mod_git_revision}" "${temp_dir}/SRCINFO"; then >&2 printf '"make_source_info %s %s %s %s %s" failed.\n' "${package}" "${repository}" "${git_revision}" "${mod_git_revision}" "${temp_dir}/SRCINFO" exit 2 fi |