diff options
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."; |