Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-05 10:08:26 +0200
committerErich Eckner <git@eckner.net>2018-06-05 10:08:26 +0200
commitd5bf4b445d9874523cdd9d8d8231452bde8732b5 (patch)
tree02948be1693943e0eac1e736ff193ccfec8dea99 /bin/get-assignment
parent548ddb5ec85ea7474a213ca065939fc2b8553f5e (diff)
bin/get-assignment: tell the slave what packages are being expected
Diffstat (limited to 'bin/get-assignment')
-rwxr-xr-xbin/get-assignment10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index af86ea1..d729444 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -39,6 +39,16 @@ hand_out_assignment() {
printf ' AND `build_assignments`.`id`=%s' \
"$1"
printf ' LIMIT 1;\n'
+ printf 'SELECT '
+ mysql_package_name_query
+ printf ' FROM `binary_packages`'
+ mysql_join_binary_packages_architectures
+ mysql_join_binary_packages_binary_packages_in_repositories
+ printf ' WHERE `binary_packages`.`build_assignment`=%s' \
+ "$1"
+ printf ' AND `binary_packages_in_repositories`.`repository`=%s' \
+ "${repository_ids__any_build_list}"
+ printf ';\n'
} | \
mysql_run_query | \
tr '\t' ' '