[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[pgstatus] [PATCH 1/3] Add all/failed links to recent build logs on the architecture page



The all link is useful to maintainers who want to see what built recently.

The failed link is useful to porters who want to fix FTBFS issues.
---
 architecture.php | 1 +
 library.php      | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/architecture.php b/architecture.php
index d729c39..61b1321 100644
--- a/architecture.php
+++ b/architecture.php
@@ -50,6 +50,7 @@ if ($suite != "all") {
   buildds_machine_info($arch, $suite, $buildd);
   notes_overview_link($arch, $suite, $notes);
 }
+recent_builds_link($arch, $suite);
 
 echo "<p>The time indicates for how long a package is in the given state.</p>";
 
diff --git a/library.php b/library.php
index f912366..4a4f3a7 100644
--- a/library.php
+++ b/library.php
@@ -1536,6 +1536,14 @@ function notes_overview_link($arch, $suite, $current_notes="") {
   echo '<br />';
 }
 
+function recent_builds_link($arch, $suite) {
+  echo 'Recent build results: ';
+  $suite = ($suite == 'all') ? '' : $suite;
+  printf('[<a href="recent.php?a=%s&amp;suite=%s">all</a>]', $arch, $suite);
+  printf('[<a href="recent.php?bad_results_only=on&amp;a=%s&amp;suite=%s">failed</a>]', $arch, $suite);
+  echo '<br />';
+}
+
 function page_title($packages, $text="Buildd status for") {
   $pkgs = "";
   $count = count($packages);
-- 
2.15.0


Reply to: