Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/prioritize-build-list
diff options
context:
space:
mode:
Diffstat (limited to 'bin/prioritize-build-list')
-rwxr-xr-xbin/prioritize-build-list7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/prioritize-build-list b/bin/prioritize-build-list
index 2492d54..a16bbb2 100755
--- a/bin/prioritize-build-list
+++ b/bin/prioritize-build-list
@@ -117,6 +117,13 @@ verbose_flock ${wait_for_lock} 8
mysql_join_binary_packages_binary_packages_in_repositories 's_bp' 's_bpir'
printf ' AND `s_bpir`.`repository`=%s' \
"${repository_ids__any_build_list}"
+ printf ' JOIN `architecture_compatibilities` AS `ac_a`'
+ printf ' ON `ac_a`.`fully_compatible`'
+ printf ' AND `ac_a`.`built_for`=`g_bp`.`architecture`'
+ printf ' JOIN `architecture_compatibilities` AS `ac_b`'
+ printf ' ON `ac_b`.`fully_compatible`'
+ printf ' AND `ac_b`.`built_for`=`s_bp`.`architecture`'
+ printf ' AND `ac_a`.`runs_on`=`ac_b`.`runs_on`'
mysql_join_binary_packages_build_assignments 's_bp' 's_ba'
printf ' GROUP BY `s_ba`.`id`'
printf ') AS `sub_q`'