diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-12 19:21:43 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-12 19:21:43 +0000 |
commit | 6199503b35705507221c0a61c347eac65c6c1f5f (patch) | |
tree | f4c77df1de07206eeab520e336d8ba02cbb98979 /usr/local/www | |
parent | e45d73496e90ac4f8d786b81876a9a1d97be71cb (diff) | |
download | pfsense-6199503b35705507221c0a61c347eac65c6c1f5f.zip pfsense-6199503b35705507221c0a61c347eac65c6c1f5f.tar.gz |
Use depends_on_package to properly remove a BSD package.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 76018e7..a01cc23 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -99,7 +99,9 @@ include("fbegin.inc"); <?php switch($_GET['mode']) { case "delete": - delete_package($_GET['pkg'] . '-' . $_GET['version']); + $id = get_pkg_id($_GET['pkg']); + $todel = substr(reverse_strrchr($config['installedpackages']['package'][$id]['depends_on_package'], "."), 0, -1); + delete_package($todel); delete_package_xml($_GET['pkg']); update_status("Package deleted."); $static_output .= "\nPackage deleted."; |