From 3db9c530ac21968aa87a7864b611a446877d0377 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 27 Dec 2012 18:11:03 +0000 Subject: Display type of failure --- autobuild/index.php | 10 +++++----- 1 file 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 "

$succes_percent% Success

\n"; echo "$nb_fixed packages have been fixed since this run and $nb_removed have been removed.
If no new package was broken, success rate next time should be $estimated_percent%.
\n"; echo "

Failed builds ($nb_failed/$nb_tried):