diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-13 23:10:14 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-13 23:10:14 +0000 |
commit | a764453f3f8be8a790ddd969639b36bd5f21641e (patch) | |
tree | c5690a798d70693ee7b1116775300e24f7875212 /usr | |
parent | 0fdf1eaae40e021f539f0efdc411e8c11128f8b6 (diff) | |
download | pfsense-a764453f3f8be8a790ddd969639b36bd5f21641e.zip pfsense-a764453f3f8be8a790ddd969639b36bd5f21641e.tar.gz |
Fix logic that checks whether a package is already installed.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 5 |
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. |