From be90f4841f958bae8fdd0c5577017cdd267bb08c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 27 Mar 2019 11:47:52 +0100 Subject: buildmaster/build-list-links.php: filter by architecture (of build assignment) --- buildmaster/build-list-links.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'buildmaster/build-list-links.php') diff --git a/buildmaster/build-list-links.php b/buildmaster/build-list-links.php index 1c64489..e707ba4 100644 --- a/buildmaster/build-list-links.php +++ b/buildmaster/build-list-links.php @@ -4,10 +4,17 @@ require_once BASE . "/lib/mysql.php"; $edges = ""; $knots = ""; +$filter = "1"; +$filter_join = ""; if (!array_key_exists("raw", $_GET)) $limit = " LIMIT 150"; +if (array_key_exists("arch", $_GET)) { + $filter_join = mysql_join_build_assignments_architectures('', 'ba_a'); + $filter = arch_filter_query('ba_a'); +} + $query = "CREATE TEMPORARY TABLE `ba` (" . "`id` BIGINT, " . @@ -29,7 +36,9 @@ $query = mysql_join_binary_packages_in_repositories_binary_packages() . mysql_join_binary_packages_in_repositories_repositories() . mysql_join_binary_packages_build_assignments() . + $filter_join . " WHERE `repositories`.`name`=\"build-list\"" . + " AND " . $filter . $limit; if (array_key_exists("raw", $_GET)) print $query . ";\n"; -- cgit v1.2.3-70-g09d2