index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2023-08-04 16:46:09 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2023-08-04 16:46:09 +0200 |
commit | ef32b269495cfb7bfb716f157fe32cf8adb02d9a (patch) | |
tree | bf27fe7bf946d3d66c308bf7446b2e88460845e1 | |
parent | eec5b77db79b51a2db567f95a66280f51c054692 (diff) |
-rwxr-xr-x | bin/get-package-updates | 3 | ||||
-rwxr-xr-x | lib/common-functions | 12 | ||||
-rwxr-xr-x | lib/mysql-functions | 2 |
diff --git a/bin/get-package-updates b/bin/get-package-updates index f79b097..d9b9dd8 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -421,6 +421,9 @@ done echo 'Insert updated packages' while read -r pkgbase repository git_revision mod_git_revision; do + if test "$repository" = "kde-unstable"; then + continue + fi # shellcheck disable=SC2016 { # delete old binary packages which are not yet built or on the diff --git a/lib/common-functions b/lib/common-functions index a9d4f73..f071d4e 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -201,6 +201,18 @@ str_to_regex() { ' } + +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 $package $repository $git_revision $mod_git_revision $output # create .SRCINFO from PKGBUILD within git repositories, output to $output make_source_info() { diff --git a/lib/mysql-functions b/lib/mysql-functions index 6e8e621..d58a7f5 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -241,7 +241,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 |