summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-22 02:02:03 +0000
committerColin Smith <colin@pfsense.org>2005-04-22 02:02:03 +0000
commitf22f23a9b4a3da0c5384356d69bbfe72479236c1 (patch)
tree39d5662d0f1e3e9ef3ba64d50dd012e7718b93d7
parentfdb718b9cbcbb2974c060c64aedc1b4343f5e7a8 (diff)
downloadpfsense-f22f23a9b4a3da0c5384356d69bbfe72479236c1.zip
pfsense-f22f23a9b4a3da0c5384356d69bbfe72479236c1.tar.gz
Log all dependencies found but already installed.
-rwxr-xr-xusr/local/www/guiconfig.inc5
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);
OpenPOWER on IntegriCloud