summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-03 22:53:38 +0000
committerErmal <eri@pfsense.org>2010-09-03 22:54:14 +0000
commitb2a6623150b1a455e87cbe22f25b3a777606ff61 (patch)
tree9370838b2537f2e227ce848747474054ede5c12c /usr/local/www/pkg_mgr_install.php
parente93385d06ddf0e2888b3f5ee5764992a19f99120 (diff)
downloadpfsense-b2a6623150b1a455e87cbe22f25b3a777606ff61.zip
pfsense-b2a6623150b1a455e87cbe22f25b3a777606ff61.tar.gz
Ticket #873. Call write_config() before including file to avoid loosing already done modifications. While here do some code cleanup and formating to make it more readble.
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 9e9b5d7..5e17150 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -181,8 +181,7 @@ switch($_GET['mode']) {
$static_output = "";
if($pkgtodo['name']) {
update_output_window($static_output);
- delete_package($pkgtodo['name'] . '-' . $pkgtodo['version'], $pkg_id);
- delete_package_xml($pkgtodo['name']);
+ uninstall_package_from_name($pkgtodo['name']);
install_package($pkgtodo['name']);
$pkg_id++;
}
OpenPOWER on IntegriCloud