index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/return-assignment | 5 |
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`' |