Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/get-package-updates16
1 files changed, 5 insertions, 11 deletions
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
}