summaryrefslogtreecommitdiffstats
path: root/autobuild/results.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2013-01-16 23:55:03 +0000
committerPascal Terjan <pterjan@mageia.org>2013-01-16 23:55:03 +0000
commit52238360bcc5de2945430cbef1f7f08cde7d571b (patch)
tree164dae5548b29c171ea69d48674b554f10f69c52 /autobuild/results.php
parent25e95b2913504ebc2d4f05d4027f68ddf9e89309 (diff)
downloadpkgsubmit-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
Diffstat (limited to 'autobuild/results.php')
-rw-r--r--autobuild/results.php8
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;
}
}