summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autobuild/index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/autobuild/index.php b/autobuild/index.php
index c92157b..c88c75d 100644
--- a/autobuild/index.php
+++ b/autobuild/index.php
@@ -75,7 +75,7 @@ while (!feof($status_file)) {
if ($status == "ok") {
array_push($success, $rpm);
} elseif ($status != "unknown" && $status != "not_on_this_arch"){
- array_push($failure, $rpm);
+ $failure[$rpm] = $status;
preg_match("/(.*)-([^-]*-[^-]*mga)[1-9].src.rpm/", $rpm, $matches);
if(!$packages[$matches[1]]) {
$removed[$rpm] = 1;
@@ -88,7 +88,7 @@ while (!feof($status_file)) {
fclose($status_file);
sort($success);
-sort($failure);
+ksort($failure);
$nb_failed = count($failure);
$nb_success = count($success);
@@ -118,7 +118,7 @@ echo "<h1>$succes_percent% Success</h1>\n";
echo "$nb_fixed packages have been fixed since this run and $nb_removed have been removed.<br/> If no new package was broken, success rate next time should be $estimated_percent%.<br/>\n";
echo "<div style='float:left'><h1>Failed builds ($nb_failed/$nb_tried):</h1><ul>";
-foreach ($failure as $rpm) {
+foreach ($failure as $rpm => $error) {
$status = "";
if ($fixed[$rpm]) {
$status = " <span style='color:green;'><b>Fixed!</b></span>";
@@ -128,9 +128,9 @@ foreach ($failure as $rpm) {
$status = " <span style='color:red;'><b>New!</b></span>";
}
if (file_exists("$base_dir/$rpm/")) {
- echo "<li><a href='$base_dir/$rpm/'>$rpm</a>$status</li>\n";
+ echo "<li><a href='$base_dir/$rpm/'>$rpm</a> $error $status</li>\n";
} else {
- echo "<li>$rpm $status</li>\n";
+ echo "<li>$rpm $error $status</li>\n";
}
}