diff options
Diffstat (limited to 'autobuild/results.php')
-rw-r--r-- | autobuild/results.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autobuild/results.php b/autobuild/results.php index 3bbee74..c9bb05d 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -6,7 +6,7 @@ <?php function parse_package($rpm) { - if (preg_match("/(.*)-([^-]*-[^-]*mga)[1-9].src.rpm/", $rpm, $matches)) { + if (preg_match("/(.*)-([^-]*-[^-]*mga)[0-9]+.src.rpm/", $rpm, $matches)) { return Array('package' => $matches[1], 'version' => $matches[2]); } else { return false; @@ -386,7 +386,7 @@ foreach ($failure as $rpm => $error) { $error_html = "<img src='icons/error-$error.png' title='$error'/> $error"; } $history = get_build_history($packageid); - if (is_flaky($history)) { + if ($history && is_flaky($history)) { $history_link = $history_link . " <img src='icons/warning-flaky.png' title='Flaky build' />"; } $langs = ""; |