summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-10-05 20:59:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-10-05 20:59:39 +0000
commit7fa5fd2c810d58de98a9c58445e661cad099cac6 (patch)
treef0851745df001cb7dad7697275dd9706265e9aa9 /usr
parent3afdcfe8ad91ba6b5ccfd2f366e90a5a605cfff2 (diff)
downloadpfsense-7fa5fd2c810d58de98a9c58445e661cad099cac6.zip
pfsense-7fa5fd2c810d58de98a9c58445e661cad099cac6.tar.gz
Include second argument for pkg_delete() Ticket #1470
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 edde430..4a7350f 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -147,12 +147,14 @@ switch($_GET['mode']) {
if($config['installedpackages']['package'] <> "")
foreach($config['installedpackages']['package'] as $package)
$todo[] = array('name' => $package['name'], 'version' => $package['version']);
+ $pkg_id = 0;
foreach($todo as $pkgtodo) {
$static_output = "";
update_output_window($static_output);
- delete_package($pkgtodo['name'] . '-' . $pkgtodo['version']);
+ delete_package($pkgtodo['name'] . '-' . $pkgtodo['version'], $pkg_id);
delete_package_xml($pkgtodo['name']);
install_package($pkgtodo['name']);
+ $pkg_id++;
}
update_status("All packages reinstalled.");
$static_output .= "\n\nAll packages reinstalled.";
OpenPOWER on IntegriCloud