mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correctly delete package
This commit is contained in:
parent
f6b761fb9f
commit
c85c6f1e72
@ -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);
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user