Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-14 15:39:38 +0100
committerErich Eckner <git@eckner.net>2018-11-14 15:39:38 +0100
commit185262a6fbe86440f3e5c433eceb278a879d5ddb (patch)
tree24a49ff4179236da4c0487774d314c8f648bcd9e
parentc3d1bb4d51483d6eb3f4309159f415e16ecab51f (diff)
bin/prioritize-build-list: architecture must match for -d
-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`'