diff options
author | Pascal Terjan <pterjan@mageia.org> | 2022-03-12 07:52:12 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2022-03-12 07:52:12 +0000 |
commit | 66f1db9e239d68bcfd0406320bcb121320492320 (patch) | |
tree | 43a87898f24523239d29658aaad237a75ddd2a07 | |
parent | c387881b84f1cfa54385c5af11d35703fa6cd491 (diff) | |
download | pkgsubmit-66f1db9e239d68bcfd0406320bcb121320492320.tar pkgsubmit-66f1db9e239d68bcfd0406320bcb121320492320.tar.gz pkgsubmit-66f1db9e239d68bcfd0406320bcb121320492320.tar.bz2 pkgsubmit-66f1db9e239d68bcfd0406320bcb121320492320.tar.xz pkgsubmit-66f1db9e239d68bcfd0406320bcb121320492320.zip |
Fix all runs being markes as in progress
For some reason I couldn't figure out readlink() doesn't work so
use `readlink` instead.
-rw-r--r-- | autobuild/results.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/autobuild/results.php b/autobuild/results.php index 5e2875f..7bccbe7 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -34,7 +34,9 @@ sort($runs); $latestlinks = glob("cauldron/*/core/latest"); $latest = 0; foreach ($latestlinks as $link) { - $date = readlink($link); + # This is ugly but readlink() returns false even if is_link() returns + # true and readlink() as user apache in php cli works. + $date = `readlink $link`; if ($date > $latest) { $latest = $date; } |