summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-06 21:00:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-06 21:00:24 +0000
commit46c4f5d0b9b5027dfda951e791d1fb8172834837 (patch)
tree4b0d4057adeb340a512e2327c044a283cfc44fde /etc
parentc8433e582c03ff00fdf696e1cd3f773e8b17124a (diff)
downloadpfsense-46c4f5d0b9b5027dfda951e791d1fb8172834837.zip
pfsense-46c4f5d0b9b5027dfda951e791d1fb8172834837.tar.gz
When package include files do not exist, simply reinstall package.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 8aa506e..1ebfcbb 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -266,6 +266,7 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
foreach($depends as $item) {
if(!file_exists("/usr/local/pkg" . $item)) {
file_notice($package['name'], "The {$package['name']} package is missing required dependencies and must be reinstalled.", "Packages", "/pkg_mgr_install.php?mode=reinstallpkg&pkg={$package['name']}", 1);
+ install_package($pkg_name);
} else {
$item_config = parse_xml_config_pkg("/usr/local/pkg/" . $item, "packagegui");
if(isset($item_config['nosync'])) continue;
OpenPOWER on IntegriCloud