summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-12-27 18:11:03 +0000
committerPascal Terjan <pterjan@mageia.org>2012-12-27 18:11:03 +0000
commit3db9c530ac21968aa87a7864b611a446877d0377 (patch)
treecde673190ed2234250aeeed97aea9f36baf41962
parenta707cf12d221dd6ffa37b945699861f8b729c7e2 (diff)
downloadpkgsubmit-3db9c530ac21968aa87a7864b611a446877d0377.tar
pkgsubmit-3db9c530ac21968aa87a7864b611a446877d0377.tar.gz
pkgsubmit-3db9c530ac21968aa87a7864b611a446877d0377.tar.bz2
pkgsubmit-3db9c530ac21968aa87a7864b611a446877d0377.tar.xz
pkgsubmit-3db9c530ac21968aa87a7864b611a446877d0377.zip
Display type of failure
-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";
}
}