index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-05-22 14:39:29 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-05-22 14:41:20 +0200 |
commit | f5d6482afab7c69ec6ec6a08868bb06ac86d28c9 (patch) | |
tree | 90837ba44e46936d28bead493ce127b389f60b19 /bin | |
parent | 23609ff2e07de412a4da59dab05dc1cbaada5bca (diff) |
-rwxr-xr-x | bin/get-package-updates | 16 |
diff --git a/bin/get-package-updates b/bin/get-package-updates index a4c273d..bbf5a4a 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -197,17 +197,11 @@ check_if_package_should_be_deleted() { if git -C "${repo_paths__archlinux32}" archive "${new_repo_revisions__archlinux32}" -- "${repository}/${pkgbase}" >/dev/null 2>&1; then return 1 fi - if git -C "${repo_paths__state}" archive "${new_repo_revisions__state}" \ - | tar -t \ - | tr '/' ' ' \ - | cut -d' ' -f1,2 \ - | sort -k2,2 \ - | join -1 2 -2 1 - <(echo "${pkgbase}") \ - | cut -d' ' -f1 \ - | sed 's@-[^-]\+$@@' \ - | grep -qxF "${repository}"; then - return 1 - fi + for considered_architecture in 'any' 'x86_64'; do + if git -C "${repo_paths__state}" archive "${new_repo_revisions__state}" -- "${repository}-${considered_architecture}/${pkgbase}" >/dev/null 2>&1; then + return 1 + fi + done return 0 } |