summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-06-12 19:26:49 +0000
committerColin Smith <colin@pfsense.org>2005-06-12 19:26:49 +0000
commit60c5ffdb3fd0e324bfc2d4323dc9615f0c93a23f (patch)
treef61202132ce6b0f52966e866715f4c6907c84c42 /usr
parent6199503b35705507221c0a61c347eac65c6c1f5f (diff)
downloadpfsense-60c5ffdb3fd0e324bfc2d4323dc9615f0c93a23f.zip
pfsense-60c5ffdb3fd0e324bfc2d4323dc9615f0c93a23f.tar.gz
Update package reinstallation to use depends_on_package.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php4
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 a01cc23..2a27154 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -108,7 +108,9 @@ switch($_GET['mode']) {
update_output_window($static_output);
break;
case "reinstallpkg":
- 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']);
install_package($_GET['pkg']);
update_status("Package reinstalled.");
OpenPOWER on IntegriCloud