From b8d227f4562e3da8f3d8a6bd759c27691f15f654 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 29 Jun 2023 13:07:43 +0200 Subject: trying to use pkginfo cache --- lib/common-functions | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/common-functions') 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" -- cgit v1.2.3-54-g00ecf