Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-09-26 16:08:19 +0200
committerErich Eckner <git@eckner.net>2020-09-26 16:08:19 +0200
commit5e96d3ac19a9531b00508f0af4e8c521eff59cc0 (patch)
tree6190054a03b4c55e2dd77d21c9b717e3ca4699fd
parent5755c650e22374ffce5a8daf76d933b0f104bb02 (diff)
bin/get-package-updates: do not re-add packages removed from the blacklist, if they do not exist upstream
-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