From 07e729219263055c87998bcea29f5fe6f27299d7 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 21 Jan 2013 21:34:02 +0000 Subject: Restore the "new" feature --- autobuild/results.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autobuild/results.php b/autobuild/results.php index b165820..c3dd5db 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -42,7 +42,7 @@ if ($prev) { $status_file = fopen($status_name, "r"); while (!feof($status_file)) { $line = fgets($status_file); - if (preg_match("/^(.*): (.*)$/", $line, $matches)) { + if (preg_match("/^(.*)-[^-]*-[^-]*mga[1-9].src.rpm: (.*)$/", $line, $matches)) { $rpm = $matches[1]; $status = $matches[2]; if ($status != "ok" && $status != "unknown" && $status != "not_on_this_arch") { @@ -81,6 +81,9 @@ while (!feof($status_file)) { preg_match("/(.*)-([^-]*-[^-]*mga)[1-9].src.rpm/", $rpm, $matches); $package = $matches[1]; $version = $matches[2]; + if(!$prev_failure[$package]) { + $broken[$rpm] = 1; + } if(!$packages[$package]) { $removed[$rpm] = 1; } else { -- cgit v1.2.1