diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-23 01:15:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-23 01:15:29 +0000 |
commit | dbef849da8fd18367c2562f680739cbc1073a8f1 (patch) | |
tree | 087b104da13a2a7726f56b642202ccac6abf83da | |
parent | 1f4705e73ab7a46379779b3acd5371a3f7044ac6 (diff) | |
download | pfsense-dbef849da8fd18367c2562f680739cbc1073a8f1.zip pfsense-dbef849da8fd18367c2562f680739cbc1073a8f1.tar.gz |
Cleanup console package installation text. Now it looks nice and tidy.
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 | ||||
-rw-r--r-- | etc/inc/pkg-utils.inc | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 1b18ff1..aead5d5 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -844,7 +844,7 @@ function update_output_window($text) { global $pkg_interface; $log = ereg_replace("\n", "\\n", $text); if($pkg_interface == "console") { - echo " $log\n"; + /* too chatty */ } else { echo "\n<script language=\"JavaScript\">this.document.forms[0].output.value = \"" . $log . "\";</script>"; } 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; |