From 7d0e135f0270eb6a05354e2927f4e198d9312078 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 17 Jun 2020 11:51:29 +0200 Subject: bin/return-assignment: relax the avoid-prioritizing-loops-condition somewhat --- bin/return-assignment | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index 9c141f0..3b511be 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -410,13 +410,10 @@ if [ "$6" = 'ERROR' ]; then printf ' JOIN `binary_packages`' printf ' ON `binary_packages`.`pkgname`=`broken`.`pkgname`' mysql_join_binary_packages_build_assignments -# TODO: We might want to relax the below condition somewhat. But we should -# be careful to avoid prioritizing-loops. - printf ' AND NOT `build_assignments`.`is_broken`' mysql_join_binary_packages_binary_packages_in_repositories printf ' AND `binary_packages_in_repositories`.`repository`=%s' \ "${repository_ids__any_build_list}" - printf ' SET `build_assignments`.`priority`=@`max_priority`+1;\n' + printf ' SET `build_assignments`.`priority`=GREATEST(0,@`max_priority`+IF(`build_assignments`.`is_broken`,-1,1));\n' printf 'SELECT DISTINCT `broken`.`pkgname`' printf ' FROM `broken`' -- cgit v1.2.3-70-g09d2