diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-22 02:02:03 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-22 02:02:03 +0000 |
commit | f22f23a9b4a3da0c5384356d69bbfe72479236c1 (patch) | |
tree | 39d5662d0f1e3e9ef3ba64d50dd012e7718b93d7 | |
parent | fdb718b9cbcbb2974c060c64aedc1b4343f5e7a8 (diff) | |
download | pfsense-f22f23a9b4a3da0c5384356d69bbfe72479236c1.zip pfsense-f22f23a9b4a3da0c5384356d69bbfe72479236c1.tar.gz |
Log all dependencies found but already installed.
-rwxr-xr-x | usr/local/www/guiconfig.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index cb77835..18c6965 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -583,7 +583,10 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url = $depend_filename = $working_depend[0] . $pkg_extension; exec("ls /var/db/pkg", $is_installed); $is_installed = array_values(preg_grep("/{$working_depend[0]}/i", $is_installed)); - if($is_installed[0] == "") pkg_fetch_recursive($working_depend[0], $depend_filename, $dependlevel + 1); + if($is_installed[0] == "") { + pkg_fetch_recursive($working_depend[0], $depend_filename, $dependlevel + 1); + } else { + fwrite($fd_log, $working_depend[0] . "\n"); } } exec("cat {$g['tmp_path']}/y | /usr/sbin/pkg_add -v {$fetchto} 2>&1", $pkgaddout); |