summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-03 14:30:16 +0000
committerErmal <eri@pfsense.org>2011-08-03 14:30:47 +0000
commit090d2bdcd90c8440d16421a3f00112eb9664e19b (patch)
treed229a1a0675fadb59f5c7cfbaddafa25309129d9 /etc/inc/pkg-utils.inc
parent4ac9cdf2ce8a26661687259ba27f7624390b346e (diff)
downloadpfsense-090d2bdcd90c8440d16421a3f00112eb9664e19b.zip
pfsense-090d2bdcd90c8440d16421a3f00112eb9664e19b.tar.gz
Add yet another intermediate config write during pacakge processing which breaks some installation steps.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 8bf9515..ccf017f 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -599,7 +599,6 @@ function install_package($package, $pkg_info = "") {
write_config($changedesc);
$static_output .= "done.\n";
update_output_window($static_output);
- update_output_window($static_output);
if($pkg_info['after_install_info'])
update_output_window($pkg_info['after_install_info']);
}
@@ -764,6 +763,8 @@ function install_package_xml($pkg) {
foreach($config['installedpackages']['menu'] as $amenu)
if($amenu['name'] == $menu['name'])
continue 2;
+ else
+ $config['installedpackages']['menu'] = array();
$config['installedpackages']['menu'][] = $menu;
}
$static_output .= "done.\n";
@@ -778,6 +779,8 @@ function install_package_xml($pkg) {
foreach($config['installedpackages']['tab'] as $atab)
if($atab['name'] == $tab['name'])
continue 2;
+ else
+ $config['installedpackages']['tab'] = array();
$config['installedpackages']['tab'][] = $tab;
}
$static_output .= "done.\n";
@@ -792,11 +795,15 @@ function install_package_xml($pkg) {
foreach($config['installedpackages']['service'] as $aservice)
if($aservice['name'] == $service['name'])
continue 2;
+ else
+ $config['installedpackages']['service'] = array();
$config['installedpackages']['service'][] = $service;
}
$static_output .= "done.\n";
update_output_window($static_output);
}
+ /* XXX: Seems there are issues with packages doing things */
+ write_config("Intermediate config write during package install for {$pkg_info['name']}");
/* custom commands */
$static_output .= "Custom commands...\n";
update_output_window($static_output);
OpenPOWER on IntegriCloud