summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-23 01:15:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-23 01:15:29 +0000
commitdbef849da8fd18367c2562f680739cbc1073a8f1 (patch)
tree087b104da13a2a7726f56b642202ccac6abf83da /etc/inc/pkg-utils.inc
parent1f4705e73ab7a46379779b3acd5371a3f7044ac6 (diff)
downloadpfsense-dbef849da8fd18367c2562f680739cbc1073a8f1.zip
pfsense-dbef849da8fd18367c2562f680739cbc1073a8f1.tar.gz
Cleanup console package installation text. Now it looks nice and tidy.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index c78bd9a..4d48e3b 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -385,7 +385,9 @@ function read_body($ch, $string) {
}
function install_package($package, $pkg_info = "") {
- global $g, $config, $pkg_interface, $fd_log, $static_output;
+ global $g, $config, $pkg_interface, $fd_log, $static_output, $pkg_interface;
+ if($pkg_interface == "console")
+ echo "\n";
/* open logfiles and begin installation */
if(!$fd_log) {
if(!$fd_log = fopen("{$g['tmp_path']}/pkg_mgr_{$package}.log", "w")) {
@@ -499,6 +501,8 @@ function install_package_xml($pkg) {
/* pkg_add the package and its dependencies */
if($pkg_info['depends_on_package_base_url'] != "") {
+ if($pkg_interface == "console")
+ echo "\n";
update_status("Installing " . $pkg_info['name'] . " and its dependencies.");
$static_output .= "Downloading " . $pkg_info['name'] . " and its dependencies... ";
$static_orig = $static_output;
OpenPOWER on IntegriCloud