diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-29 20:10:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-29 20:10:23 +0000 |
commit | 761902b01e313140902f128912f3b2daca47a67e (patch) | |
tree | 2248a6c1d802a4d3d6ace732eecde8d696ae4b79 /etc/inc | |
parent | 26a26ef79de877dd17d5b75bf008b8e35ee84e31 (diff) | |
download | pfsense-761902b01e313140902f128912f3b2daca47a67e.zip pfsense-761902b01e313140902f128912f3b2daca47a67e.tar.gz |
Correctly output the package name that we are attempting to reinstall instead of the package array number.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index fc77f10..54d8e18 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -417,14 +417,14 @@ function install_package($package, $pkg_info = "") { update_output_window("Warning, could not open log for writing."); } } - @fwrite($fd_log, "Beginning package installation.\n"); - log_error('Beginning package installation for ' . $package . '.'); - update_status("Beginning package installation for " . $package . "..."); /* fetch package information if needed */ if(!$pkg_info or !is_array($pkg_info[$package])) { $pkg_info = get_pkg_info(array($package)); $pkg_info = $pkg_info[$package]; // We're only dealing with one package, so we can strip away the extra array. } + @fwrite($fd_log, "Beginning package installation.\n"); + log_error('Beginning package installation for ' . $pkg_info['name'] . '.'); + update_status("Beginning package installation for " . $pkg_info['name'] . "..."); /* fetch the package's configuration file */ if($pkg_info['config_file'] != "") { $static_output .= "Downloading package configuration file... "; |