index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-09-26 16:08:19 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-09-26 16:08:19 +0200 |
commit | 5e96d3ac19a9531b00508f0af4e8c521eff59cc0 (patch) | |
tree | 6190054a03b4c55e2dd77d21c9b717e3ca4699fd | |
parent | 5755c650e22374ffce5a8daf76d933b0f104bb02 (diff) |
-rwxr-xr-x | bin/get-package-updates | 16 |
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 |