Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/copy-to-build-support
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-27 21:21:07 +0200
committerErich Eckner <git@eckner.net>2018-06-27 21:21:07 +0200
commit78646fb55609f7c94ebaf1b2fb5cc422cf5451da (patch)
treebab3e01732143ed75449c02123d6bb567a6f264c /bin/copy-to-build-support
parent64f3cd4aa117972c5540484a0328322e77ff62f1 (diff)
bin/copy-to-build-support: only consider actual, not-yet-copied packages for copying
Diffstat (limited to 'bin/copy-to-build-support')
-rwxr-xr-xbin/copy-to-build-support8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support
index faa93e7..fbc441d 100755
--- a/bin/copy-to-build-support
+++ b/bin/copy-to-build-support
@@ -90,6 +90,8 @@ sed -n '
printf 'SELECT `binary_packages`.`id`'
printf ' FROM `binary_packages`'
mysql_join_binary_packages_architectures
+ mysql_join_binary_packages_binary_packages_in_repositories
+ mysql_join_binary_packages_in_repositories_repositories
printf ' WHERE'
printf ' `binary_packages`.`%s`=from_base64("%s") AND' \
'epoch' "$(printf '%s' "${epoch}" | base64 -w0)" \
@@ -99,6 +101,12 @@ sed -n '
'pkgname' "$(printf '%s' "${pkgname}" | base64 -w0)"
printf ' `architectures`.`name`=from_base64("%s")' \
"$(printf '%s' "${architecture}" | base64 -w0)"
+ printf ' AND NOT EXISTS ('
+ printf 'SELECT 1 FROM `binary_packages_in_repositories` AS `bs_bpir`'
+ mysql_join_binary_packages_in_repositories_repositories 'bs_bpir' 'bs_r'
+ printf ' WHERE `bs_bpir`.`package`=`binary_packages`.`id`'
+ printf ' AND `bs_r`.`name`="build-support"'
+ printf ') AND `repositories`.`is_on_master_mirror`'
printf ' LIMIT 1;\n'
} | \
mysql_run_query