summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-27 11:47:52 +0100
committerErich Eckner <git@eckner.net>2019-03-27 11:47:52 +0100
commitbe90f4841f958bae8fdd0c5577017cdd267bb08c (patch)
treef4ea112d511ee7efbe632a12f189013294f39c52
parent1c3eb159945e8f4c0f9006498c93cdcc19724cb9 (diff)
downloadarchweb32-be90f4841f958bae8fdd0c5577017cdd267bb08c.tar.xz
buildmaster/build-list-links.php: filter by architecture (of build assignment)
-rw-r--r--buildmaster/build-list-links.php9
-rw-r--r--buildmaster/index.php2
2 files changed, 10 insertions, 1 deletions
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";
diff --git a/buildmaster/index.php b/buildmaster/index.php
index e63290c..1200e8e 100644
--- a/buildmaster/index.php
+++ b/buildmaster/index.php
@@ -38,7 +38,7 @@ if ($sarch_param != "") {
<body>
<?php show_warning_on_offline_slave(); ?>
<a href="build-list.php<?php print $sarch_param; ?>">build list</a>
- as <a href="build-list-links.php">graph</a> --
+ as <a href="build-list-links.php<?php print $sarch_param; ?>">graph</a> --
<a href="build-list.php?broken=Broken<?php print $march_param; ?>">broken packages</a> --
<a href="build-list.php?next=Can<?php print $march_param; ?>">buildable packages</a><br>
<a href="build-slaves.php">build-slaves</a> --