diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-29 02:14:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-29 02:14:23 +0000 |
commit | 13525730d1c1b9cdc6fc5cb8ab6e3374c1e7995f (patch) | |
tree | 41924c5dcce03b07401656db3a723b12914d02de /etc/inc | |
parent | bc497221b7cb6223579a549313f1884468c0f70a (diff) | |
download | pfsense-13525730d1c1b9cdc6fc5cb8ab6e3374c1e7995f.zip pfsense-13525730d1c1b9cdc6fc5cb8ab6e3374c1e7995f.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..0fb9701 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"); |