index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | lib/mysql-functions | 9 |
diff --git a/lib/mysql-functions b/lib/mysql-functions index dd17fde..aba6ce6 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -939,6 +939,8 @@ mysql_query_has_pending_dependencies() { printf ' ON `architecture_compatibilities`.`built_for`=`dep_bp`.`architecture`' printf ' AND `architecture_compatibilities`.`fully_compatible`' printf ' WHERE `l_itps`.`install_target`=`l_deps`.`depending_on`' + printf ' AND `dep_bp`.`build_assignment`!=%s' \ + "$2" printf ' AND `architecture_compatibilities`.`runs_on`=%s' \ "$1" # version is irelevant: either the package is built and we don't @@ -953,9 +955,12 @@ mysql_query_has_pending_dependencies() { mysql_join_install_target_providers_binary_packages 'l_itps' 'dep_bp' mysql_join_binary_packages_binary_packages_in_repositories 'dep_bp' 'dep_bpir' mysql_join_binary_packages_in_repositories_repositories 'dep_bpir' 'dep_r' - printf ' AND `dep_r`.`is_on_master_mirror`' printf ' WHERE `l_itps`.`install_target`=`l_deps`.`depending_on`' - printf ' AND `dep_r`.`architecture`=%s' \ + printf ' AND (' + printf '`dep_r`.`is_on_master_mirror`' + printf ' OR `dep_bp`.`build_assignment`=%s' \ + "$2" + printf ') AND `dep_r`.`architecture`=%s' \ "$1" printf ' AND ' mysql_query_ordering_correct \ |