diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-24 22:45:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-24 22:45:13 +0000 |
commit | c85c6f1e728002cfae266b1936cf385efcb4e6cd (patch) | |
tree | d41a2603697e4688382a52442380518e5b956edf /usr | |
parent | f6b761fb9f110ae85ff0d187f226686ffb11c0f2 (diff) | |
download | pfsense-c85c6f1e728002cfae266b1936cf385efcb4e6cd.zip pfsense-c85c6f1e728002cfae266b1936cf385efcb4e6cd.tar.gz |
Correctly delete package
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 4 |
1 files changed, 1 insertions, 3 deletions
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 |