diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-06 21:00:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-06 21:00:24 +0000 |
commit | 46c4f5d0b9b5027dfda951e791d1fb8172834837 (patch) | |
tree | 4b0d4057adeb340a512e2327c044a283cfc44fde /etc | |
parent | c8433e582c03ff00fdf696e1cd3f773e8b17124a (diff) | |
download | pfsense-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.inc | 1 |
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; |