Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/index.php49
1 files changed, 28 insertions, 21 deletions
diff --git a/buildmaster/index.php b/buildmaster/index.php
index 57e3e0f..970bd3a 100644
--- a/buildmaster/index.php
+++ b/buildmaster/index.php
@@ -2,23 +2,30 @@
require_once "../init.php";
require_once BASE . "/lib/mysql.php";
-$arch = "";
-if (array_key_exists("arch",$_GET)) {
- $arch = $_GET["arch"];
- switch ($arch) {
- case "any":
- $title = "architecture independent packages";
- break;
- case "i486":
- $title = "i486";
- break;
- case "i686":
- $title = "i686";
- break;
- default:
- $title = "all architectures";
- $arch = "";
- }
+if (!array_key_exists("arch",$_GET))
+ $_GET["arch"]="i686";
+
+$arch = $_GET["arch"];
+switch ($arch) {
+ case "any":
+ $title = "architecture independent packages";
+ break;
+ case "i486":
+ $title = "i486";
+ break;
+ case "i686":
+ $title = "i686";
+ break;
+ default:
+ $title = "all architectures";
+ $arch = "";
+}
+if ($arch != "") {
+ $sarch_param = "?arch=" . urlencode($arch);
+ $march_param = "&arch=" . urlencode($arch);
+} else {
+ $sarch_param = "";
+ $march_param = "";
}
?>
@@ -28,10 +35,10 @@ if (array_key_exists("arch",$_GET)) {
</head>
<body>
<?php show_warning_on_offline_slave(); ?>
- <a href="/buildmaster/build-list.php">build list</a>
+ <a href="/buildmaster/build-list.php<?php print $sarch_param; ?>">build list</a>
as <a href="/buildmaster/build-list-links.php">graph</a> --
- <a href="/buildmaster/build-list.php?broken=Broken">broken packages</a> --
- <a href="/buildmaster/build-list.php?next=Can">buildable packages</a><br>
+ <a href="/buildmaster/build-list.php?broken=Broken<?php print $march_param; ?>">broken packages</a> --
+ <a href="/buildmaster/build-list.php?next=Can<?php print $march_param; ?>">buildable packages</a><br>
<a href="/buildmaster/build-slaves.php">build-slaves</a> --
<a href="/buildmaster/gpg-keys.php">gpg-keys</a> --
<a href="/buildmaster/status.php">status</a><br>
@@ -49,7 +56,7 @@ if (array_key_exists("arch",$_GET)) {
<a href="/buildmaster/blacklist.php">blacklisted packages</a> --
<a href="/buildmaster/to-delete.php">packages to be deleted</a>
and <a href="/buildmaster/deletion-links.php">links between them</a><br>
- <img src="/buildmaster/statistics.php?log<?php if ($arch != "") print "&arch=" . urlencode($_GET["arch"]); ?>"><br>
+ <img src="/buildmaster/statistics.php?log<?php print $march_param; ?>"><br>
<?php
foreach (array("any", "i486", "i686", "") as $a) {