From d5bf4b445d9874523cdd9d8d8231452bde8732b5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 5 Jun 2018 10:08:26 +0200 Subject: bin/get-assignment: tell the slave what packages are being expected --- bin/get-assignment | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin') 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' ' ' -- cgit v1.2.3-70-g09d2