diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-29 02:15:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-29 02:15:24 +0000 |
commit | 4bf3f3f108f26dd5ec5927b8e8d2d05405c25068 (patch) | |
tree | 5f80b374cc19a93dfc505f4616f82a11863e1b57 /etc/inc | |
parent | 578ce7c3ee0fb1d3136413a88c48957159eeced1 (diff) | |
download | pfsense-4bf3f3f108f26dd5ec5927b8e8d2d05405c25068.zip pfsense-4bf3f3f108f26dd5ec5927b8e8d2d05405c25068.tar.gz |
Note missing file before reinstalling package
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 4059ce8..57d7cdb 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -180,7 +180,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."); + log_error("The {$package['name']} package is missing required dependencies and must be reinstalled." . $package['configurationfile']); install_package($package['name']); return; } @@ -286,6 +286,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); + log_error("Could not find {$item}. Reinstalling package."); install_package($pkg_name); } else { $item_config = parse_xml_config_pkg("/usr/local/pkg/" . $item, "packagegui"); |