From c85c6f1e728002cfae266b1936cf385efcb4e6cd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 24 Oct 2008 22:45:13 +0000 Subject: Correctly delete package --- usr/local/www/pkg_mgr_install.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr') diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 6edb347..9366d1c 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -135,8 +135,6 @@ switch($_GET['mode']) { break; case "reinstallpkg": $id = get_pkg_id(htmlspecialchars($_GET['pkg'])); - $todel = substr(reverse_strrchr($config['installedpackages']['package'][$id]['depends_on_package'], "."), 0, -1); - delete_package($todel, htmlspecialchars($_GET['pkg'])); delete_package_xml(htmlspecialchars($_GET['pkg'])); install_package(htmlspecialchars($_GET['pkg'])); update_status("Package reinstalled."); @@ -196,4 +194,4 @@ conf_mount_ro(); if($fd_log) fclose($fd_log); -?> +?> \ No newline at end of file -- cgit v1.1