From 3a9215e6589464e98548e1e74dbd22a31070e46b Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 15 Sep 2017 22:08:09 +0100 Subject: Detect recreate_srpm_failure getting fixed --- autobuild/results.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autobuild/results.php b/autobuild/results.php index 2fcf432..9e0f13d 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -111,7 +111,10 @@ while (!feof($status_file)) { } else { $build_stat = stat("$base_dir/$rpm"); $pkg_stat = stat('/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/'.$packages[$package]); - if (file_exists("$base_dir/$rpm") && $pkg_stat['mtime'] > $start_time) { + # For recreate_srpm_failure, $rpm is the one that was in the repo + # For other failures, mga release may be incorrect so use something less reliable + if (($status == 'recreate_srpm_failure' && $rpm != $packages[$package]) + || ($pkg_stat['mtime'] > $start_time)) { $fixed[$rpm] = 1; } } -- cgit v1.2.1