Correctly delete package

This commit is contained in:
Scott Ullrich 2008-10-24 22:45:13 +00:00
parent f6b761fb9f
commit c85c6f1e72

View File

@ -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);
?>
?>