summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2013-01-21 21:34:02 +0000
committerPascal Terjan <pterjan@mageia.org>2013-01-21 21:34:02 +0000
commit07e729219263055c87998bcea29f5fe6f27299d7 (patch)
tree29b1aee8a0278a42dc61740aa5f98f3c4fc9eb11
parent9da4967803ae7eafebc518fbfebfee4d9da374eb (diff)
downloadpkgsubmit-07e729219263055c87998bcea29f5fe6f27299d7.tar
pkgsubmit-07e729219263055c87998bcea29f5fe6f27299d7.tar.gz
pkgsubmit-07e729219263055c87998bcea29f5fe6f27299d7.tar.bz2
pkgsubmit-07e729219263055c87998bcea29f5fe6f27299d7.tar.xz
pkgsubmit-07e729219263055c87998bcea29f5fe6f27299d7.zip
Restore the "new" feature
-rw-r--r--autobuild/results.php5
1 files changed, 4 insertions, 1 deletions
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 {