Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates16
1 files changed, 11 insertions, 5 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index b5ed322..3f496fe 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -319,11 +319,17 @@ echo 'Check modified packages from the last update, and put them to the build li
} | \
mysql_run_query | \
while read -r pkgbase repository git_repository; do
- printf 'A %s ' \
- "${pkgbase}"
- eval 'printf '"'"'%s'"'"' "${new_repo_revisions__'"${git_repository}"'}"'
- printf ' %s\n' \
- "${repository}"
+ eval 'git_rev="${new_repo_revisions__'"${git_repository}"'}"'
+ eval 'git_dir="${repo_paths__'"${git_repository}"'}"'
+ if git -C "${git_dir}" archive "${git_rev}" -- "${pkgbase}/repos" \
+ | tar -tf - \
+ | cut -d/ -f3 \
+ | grep -q -- '-x86_64$'; then
+ printf 'A %s %s %s\n' \
+ "${pkgbase}" \
+ "${git_rev}" \
+ "${repository}"
+ fi
done
# actual updates/removes
for repo in ${repo_names}; do