diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-06 16:08:12 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-06 16:08:12 -0300 |
commit | d282095a6e0953b697035cc0d26db614fb527bf7 (patch) | |
tree | a1552a6ce82006406e221082ec097f63ecf7156b /etc | |
parent | b7e236b9ed28357ade1a9e408c21fb7b0599f663 (diff) | |
download | pfsense-d282095a6e0953b697035cc0d26db614fb527bf7.zip pfsense-d282095a6e0953b697035cc0d26db614fb527bf7.tar.gz |
Avoid duplicate service tags when reinstalling packages
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index ea7c175..4950990 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -695,6 +695,10 @@ function install_package_xml($pkg) { $static_output .= "\tServices... "; update_output_window($static_output); foreach($pkg_config['service'] as $service) { + if(is_array($config['installedpackages']['service'])) + foreach($config['installedpackages']['service'] as $aservice) + if($aservice['name'] == $service['name']) + continue 2; $config['installedpackages']['service'][] = $service; } $static_output .= "done.\n"; |