diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-01-05 16:50:08 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-01-05 16:50:08 -0500 |
commit | 9d308f58dadc5ba1a33a2ac7cb12cc898e7e70e1 (patch) | |
tree | 16dc52dcbd77ab0cc7c3de0c14cb6e44ffb5586d | |
parent | 9b1936193f0adfda87b060a5fb19270232f169a5 (diff) | |
download | pfsense-9d308f58dadc5ba1a33a2ac7cb12cc898e7e70e1.zip pfsense-9d308f58dadc5ba1a33a2ac7cb12cc898e7e70e1.tar.gz |
Do not nuke /var/db/pkg now that 2.0 has better handling
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 | ||||
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 8dc8ae4..5e0f281 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -1100,8 +1100,6 @@ function pkg_reinstall_all() { global $g, $config; $pkg_id = 0; $todo = array(); - if ($config['installedpackages']['package']) - exec("rm -rf /var/db/pkg/*"); if (is_array($config['installedpackages']['package'])) foreach($config['installedpackages']['package'] as $package) $todo[] = array('name' => $package['name'], 'version' => $package['version']); diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 607f394..1abcae6 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -166,8 +166,6 @@ switch($_GET['mode']) { update_output_window(sprintf(gettext("Could not find %s."), $_GET['pkg'])); break; case "reinstallall": - if ($config['installedpackages']['package']) - exec("rm -rf /var/db/pkg/*"); if (is_array($config['installedpackages']['package'])) foreach($config['installedpackages']['package'] as $package) $todo[] = array('name' => $package['name'], 'version' => $package['version']); |