summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-03-30 00:09:46 +0100
committerPascal Terjan <pterjan@gmail.com>2016-03-30 00:09:59 +0100
commit251d50bc3f2dbe068a0271ea3907557f272c57ca (patch)
tree2011e305c086320a014b5a561800b8b8fbc041b4
parent7c318b9bac5cc1f2148a0480604c3825e9bf3fda (diff)
downloadpkgsubmit-251d50bc3f2dbe068a0271ea3907557f272c57ca.tar
pkgsubmit-251d50bc3f2dbe068a0271ea3907557f272c57ca.tar.gz
pkgsubmit-251d50bc3f2dbe068a0271ea3907557f272c57ca.tar.bz2
pkgsubmit-251d50bc3f2dbe068a0271ea3907557f272c57ca.tar.xz
pkgsubmit-251d50bc3f2dbe068a0271ea3907557f272c57ca.zip
Make the deps glob more robust
-rw-r--r--non-mandatory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/non-mandatory.php b/non-mandatory.php
index f6f5129..6b73568 100644
--- a/non-mandatory.php
+++ b/non-mandatory.php
@@ -62,7 +62,7 @@ echo "<table>\n";
$status_file = $upload_dir . '/failure/' . $p['path'] . '/log/status.log';
$status_line = trim(preg_replace('/.*: /', '', file_get_contents($status_file)));
if ($status_line == 'missing_dep') {
- $install_deps_files = glob($upload_dir . '/failure/' . $p['path'] . '/log/' . $p['package'] . '/install_deps*.log');
+ $install_deps_files = glob($upload_dir . '/failure/' . $p['path'] . '/log/*/install_deps*.log');
$install_deps_file = $install_deps_files[count($install_deps_files)-1];
$f = fopen($install_deps_file, "r");
$dep_line = "";