summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-13 23:10:14 +0000
committerColin Smith <colin@pfsense.org>2005-04-13 23:10:14 +0000
commita764453f3f8be8a790ddd969639b36bd5f21641e (patch)
treec5690a798d70693ee7b1116775300e24f7875212 /usr
parent0fdf1eaae40e021f539f0efdc411e8c11128f8b6 (diff)
downloadpfsense-a764453f3f8be8a790ddd969639b36bd5f21641e.zip
pfsense-a764453f3f8be8a790ddd969639b36bd5f21641e.tar.gz
Fix logic that checks whether a package is already installed.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 8d197a0..2a3c0da 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -171,7 +171,7 @@ foreach ($packages_to_install as $id) {
* Make sure that this package isn't already installed.
*/
- if(get_pkg_id($pkg_config['packages']['package'][$id]['name']) == -1) continue;
+ if(get_pkg_id($pkg_config['packages']['package'][$id]['name']) != -1) continue;
/*
* install the package
@@ -470,9 +470,8 @@ foreach ($packages_to_install as $id) {
$static_output .= "\nPackage installation successful.";
update_output_window($static_output);
fwrite($fd_log, "Package installation completed.\n");
- log_error("Package " . $pkgent['name'] . " installation completed successfully.");
+ log_error("Package " . $pkgent['name'] . " installation completed successfully.\n");
fwrite($fd_log, "Status window output:\n" . $static_output);
- unlink_if_exists("/
}
// Delete all temporary package tarballs and staging areas.
OpenPOWER on IntegriCloud