diff options
-rwxr-xr-x | bin/get-assignment | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/get-assignment b/bin/get-assignment index f670df1..804501b 100755 --- a/bin/get-assignment +++ b/bin/get-assignment @@ -175,6 +175,8 @@ next_building=$( printf ' AND `architecture_compatibilities`.`fully_compatible`' printf ' JOIN `architectures`' printf ' ON `architecture_compatibilities`.`runs_on`=`architectures`.`id`' + printf ' LEFT' + mysql_join_package_sources_toolchain_order printf ' WHERE (' printf '`build_assignments`.`is_blocked` IS NULL' if [ -n "${requested}" ]; then @@ -186,6 +188,7 @@ next_building=$( mysql_query_is_part_of_loop '`build_assignments`.`id`' printf ' OR NOT ' mysql_query_has_pending_dependencies '`architectures`.`id`' '`build_assignments`.`id`' + printf ' OR `toolchain_order`.`pkgbase` IS NOT NULL' printf ')' printf ' AND `binary_packages_in_repositories`.`repository`=%s' \ "${repository_ids__any_build_list}" |