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.php22
1 files changed, 9 insertions, 13 deletions
diff --git a/buildmaster/index.php b/buildmaster/index.php
index 41985ba..e473a68 100644
--- a/buildmaster/index.php
+++ b/buildmaster/index.php
@@ -2,8 +2,8 @@
require_once "../init.php";
require_once BASE . "/lib/mysql.php";
-if (array_key_exists("arch",$_GET)) {
- $archs = array();
+$archs = array();
+if (array_key_exists("arch",$_GET))
foreach (explode("&",$_SERVER["QUERY_STRING"]) as $param) {
if (strpos($param,"arch=")!==0)
continue;
@@ -12,17 +12,13 @@ if (array_key_exists("arch",$_GET)) {
continue;
$archs[$param] = $param;
}
- if (count($archs)==0) {
- $archs = array(
- "i486" => "i486",
- "i686" => "i686",
- "pentium4" => "pentium4",
- "any" => "any"
- );
- }
-} else {
- $archs = array("i686" => "i686", "pentium4" => "pentium4", "any" => "any");
-}
+if (count($archs)==0)
+ $archs = array(
+ "i486" => "i486",
+ "i686" => "i686",
+ "pentium4" => "pentium4",
+ "any" => "any"
+ );
function encode_arch($a) {
return "arch=" . urlencode($a);