From 251d50bc3f2dbe068a0271ea3907557f272c57ca Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 30 Mar 2016 00:09:46 +0100 Subject: Make the deps glob more robust --- non-mandatory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'non-mandatory.php') 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 "\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 = ""; -- cgit v1.2.1