Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-09 13:18:32 +0100
committerErich Eckner <git@eckner.net>2018-11-09 13:18:32 +0100
commit114356dfa1e41af9b334349c748b46912b5eb477 (patch)
tree7fe6bec36ae4407b30c64beb43000be11e6529f3 /buildmaster
parent01d7b04445afb83546acb543603ccaa3ff94ff51 (diff)
buildmaster/dependencies.php: restrict architecture of dependencies and providers to those which are actually relevant if "a" is specified, but not "ba_a"
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/dependencies.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/buildmaster/dependencies.php b/buildmaster/dependencies.php
index 33bc264..1c81745 100644
--- a/buildmaster/dependencies.php
+++ b/buildmaster/dependencies.php
@@ -13,6 +13,15 @@ function dependency_arch_join($name) {
" JOIN `architectures` AS `ba_a`" .
" ON `architecture_compatibilities`.`runs_on`=`ba_a`.`id`" .
" AND `ba_a`.`name`=from_base64(\"" . base64_encode($_GET["ba_a"]) . "\")";
+ } elseif (isset($_GET["a"])) {
+ return
+ " JOIN `architecture_compatibilities` AS `ac_1`" .
+ " ON `ac_1`.`fully_compatible`" .
+ " AND `ac_1`.`built_for`=`" . $name . "`.`architecture`" .
+ " JOIN `architecture_compatibilities` AS `ac_2`" .
+ " ON `ac_2`.`fully_compatible`" .
+ " AND `ac_1`.`runs_on`=`ac_2`.`runs_on`" .
+ " AND `ac_2`.`built_for`=`architectures`.`id`";
} else
return "";
}