diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-06 20:56:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-06 20:56:53 +0000 |
commit | c8433e582c03ff00fdf696e1cd3f773e8b17124a (patch) | |
tree | d33db3272ea31152b0d6e9bdac82c3bab65a8f69 /etc | |
parent | 597dd9b9c54326ccb5fc7111f89dfdb1e9dac968 (diff) | |
download | pfsense-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.inc | 3 |
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"); |