diff options
author | Pascal Terjan <pterjan@mageia.org> | 2013-01-16 23:55:03 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2013-01-16 23:55:03 +0000 |
commit | 52238360bcc5de2945430cbef1f7f08cde7d571b (patch) | |
tree | 164dae5548b29c171ea69d48674b554f10f69c52 | |
parent | 25e95b2913504ebc2d4f05d4027f68ddf9e89309 (diff) | |
download | pkgsubmit-52238360bcc5de2945430cbef1f7f08cde7d571b.tar pkgsubmit-52238360bcc5de2945430cbef1f7f08cde7d571b.tar.gz pkgsubmit-52238360bcc5de2945430cbef1f7f08cde7d571b.tar.bz2 pkgsubmit-52238360bcc5de2945430cbef1f7f08cde7d571b.tar.xz pkgsubmit-52238360bcc5de2945430cbef1f7f08cde7d571b.zip |
Use the time of the specific package, it may have been fixed before the end of the run
-rw-r--r-- | autobuild/results.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/autobuild/results.php b/autobuild/results.php index eb0f013..891ce4a 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -68,9 +68,6 @@ if (!file_exists($status_name)) { exit; } -$stat = stat($status_name); -$end_time = $stat['mtime']; - $status_file = fopen($status_name, "r"); while (!feof($status_file)) { $line = fgets($status_file); @@ -87,8 +84,9 @@ while (!feof($status_file)) { if(!$packages[$package]) { $removed[$rpm] = 1; } else { - $stat = stat('/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/'.$packages[$package]); - if ($stat['mtime'] > $end_time) { + $build_stat = stat("$base_dir/$rpm"); + $pkg_stat = stat('/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/'.$packages[$package]); + if ($pkg_stat['mtime'] > $build_stat['mtime']) { $fixed[$rpm] = 1; } } |