Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-07-08 19:06:37 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-07-08 19:06:37 +0200
commitdd16033374de74762c808480cb217ae35082eb4b (patch)
treeed5ad2e20fee574c2d68f9a0e5d43544245dbe90 /lib
parentff3505d935d41b430414ce7d080c23459213b0b5 (diff)
removed pkginfo cache
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions12
-rwxr-xr-xlib/mysql-functions2
2 files changed, 1 insertions, 13 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 6a11326..a9d4f73 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -203,18 +203,6 @@ 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 853d81b..0819089 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_using_cache "${package}" "${repository}" "${git_revision}" "${mod_git_revision}" "${temp_dir}/SRCINFO"; then
+ if ! make_source_info "${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