summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-06 20:56:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-06 20:56:53 +0000
commitc8433e582c03ff00fdf696e1cd3f773e8b17124a (patch)
treed33db3272ea31152b0d6e9bdac82c3bab65a8f69 /etc
parent597dd9b9c54326ccb5fc7111f89dfdb1e9dac968 (diff)
downloadpfsense-c8433e582c03ff00fdf696e1cd3f773e8b17124a.zip
pfsense-c8433e582c03ff00fdf696e1cd3f773e8b17124a.tar.gz
When package include files do not exist, simply reinstall package.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 2a07c7f..8aa506e 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -161,8 +161,7 @@ function get_pkg_depends($pkg_name, $filetype = ".xml", $format = "files", $retu
$package = $config['installedpackages']['package'][$pkg_id];
if(!file_exists("/usr/local/pkg/" . $package['configurationfile'])) {
log_error("The {$package['name']} package is missing required dependencies and must be reinstalled. Deinstalling.");
- unset($config['installedpackages']['package'][$pkg_id]);
- write_config();
+ install_package($package['name']);
return;
}
$pkg_xml = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui");
OpenPOWER on IntegriCloud