summaryrefslogtreecommitdiffstats
path: root/autobuild/results.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-11-25 22:17:22 +0000
committerPascal Terjan <pterjan@mageia.org>2020-11-25 22:18:59 +0000
commitf4b00f96bfbfcefc4c18964d9f17b86b21edd66a (patch)
treea76889718d6f2270e2112d172b0171a1765e8994 /autobuild/results.php
parentd1e939580ceb38b2c83e4193cb1d99d55f05e7f2 (diff)
downloadpkgsubmit-f4b00f96bfbfcefc4c18964d9f17b86b21edd66a.tar
pkgsubmit-f4b00f96bfbfcefc4c18964d9f17b86b21edd66a.tar.gz
pkgsubmit-f4b00f96bfbfcefc4c18964d9f17b86b21edd66a.tar.bz2
pkgsubmit-f4b00f96bfbfcefc4c18964d9f17b86b21edd66a.tar.xz
pkgsubmit-f4b00f96bfbfcefc4c18964d9f17b86b21edd66a.zip
Simplify
Diffstat (limited to 'autobuild/results.php')
-rw-r--r--autobuild/results.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 08dd674..41e98b5 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -31,7 +31,7 @@ while (false !== ($entry = readdir($handle))) {
closedir($handle);
sort($runs);
-$latestlinks = array_values(glob("cauldron/*/core/latest"));
+$latestlinks = glob("cauldron/*/core/latest");
$latest = 0;
foreach ($latestlinks as $link) {
$date = readlink($link);
@@ -65,7 +65,7 @@ if ($handle = opendir('/distrib/bootstrap/distrib/cauldron/SRPMS/core/release/')
$prev_failure = Array();
if ($prev) {
- $status_name = array_values(glob("cauldron/*/core/$prev/status.core.log"))[0];
+ $status_name = array_shift(glob("cauldron/*/core/$prev/status.core.log"));
$status_file = fopen($status_name, "r");
while (!feof($status_file)) {
$line = fgets($status_file);
@@ -86,7 +86,7 @@ $fixed = Array();
$removed = Array();
$broken = Array();
-$base_dir = array_values(glob("cauldron/*/core/$run"))[0];
+$base_dir = array_shift(glob("cauldron/*/core/$run"));
$status_name = "$base_dir/status.core.log";
if (!file_exists($status_name)) {