diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-03 23:48:04 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-03 23:55:22 +0000 |
commit | 1570d27a49ec91874485b0ccc63f13dea498e3df (patch) | |
tree | a9aa2c1df2bd9dcfbb324a95ac5252d464a4f2e6 /usr | |
parent | 056577694f5156ecda13b35452714df3df2605fd (diff) | |
download | pfsense-1570d27a49ec91874485b0ccc63f13dea498e3df.zip pfsense-1570d27a49ec91874485b0ccc63f13dea498e3df.tar.gz |
When removing a package delete its underlying FreeBSD pacakges.
Correct checks for avioding as much as possible errors.
Simplify logic in some cases.
Remove package include files when uninstalling packages.
NOTE: Some work is needed to have more error reporting. Espescially when failing to retrieve files or add them locally.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index f351a52..02ecc0b 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -128,7 +128,7 @@ conf_mount_rw(); switch($_GET['mode']) { case "delete": $id = get_pkg_id($_GET['pkg']); - delete_package_xml(htmlspecialchars($_GET['pkg'])); + uninstall_package_from_name($_GET['pkg']); update_status("Package deleted."); $static_output .= "\nPackage deleted."; update_output_window($static_output); |