From 114356dfa1e41af9b334349c748b46912b5eb477 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 9 Nov 2018 13:18:32 +0100 Subject: buildmaster/dependencies.php: restrict architecture of dependencies and providers to those which are actually relevant if "a" is specified, but not "ba_a" --- buildmaster/dependencies.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'buildmaster/dependencies.php') 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 ""; } -- cgit v1.2.3