diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-23 01:22:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-23 01:22:23 +0000 |
commit | 20e593fa26b99aea967d2a20f1512487dfe4a72b (patch) | |
tree | f621a7738041b86446813da0ccf55e6ed4ab0150 /etc/inc | |
parent | dbef849da8fd18367c2562f680739cbc1073a8f1 (diff) | |
download | pfsense-20e593fa26b99aea967d2a20f1512487dfe4a72b.zip pfsense-20e593fa26b99aea967d2a20f1512487dfe4a72b.tar.gz |
Further text cleanup
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 4d48e3b..ac015fe 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -117,7 +117,7 @@ function get_pkg_sizes($pkgs = 'all') { * This function may also print output to the terminal indicating progress. */ function resync_all_package_configs($show_message = false) { - global $config; + global $config, $restart_sync; $i = 0; log_error("Resyncing configuration for all packages."); if(!$config['installedpackages']['package']) return; @@ -126,6 +126,11 @@ function resync_all_package_configs($show_message = false) { if($show_message == true) print " " . $package['name']; get_pkg_depends($package['name'], "all"); sync_package($i, true, true); + if($restart_sync == true) { + $restart_sync = false; + if($pkg_interface == "console") + echo "\nSyncing packages: "; + } $i++; } if($show_message == true) print ".\n"; @@ -385,7 +390,7 @@ function read_body($ch, $string) { } function install_package($package, $pkg_info = "") { - global $g, $config, $pkg_interface, $fd_log, $static_output, $pkg_interface; + global $g, $config, $pkg_interface, $fd_log, $static_output, $pkg_interface, $restart_sync; if($pkg_interface == "console") echo "\n"; /* open logfiles and begin installation */ @@ -449,6 +454,9 @@ function install_package($package, $pkg_info = "") { $static_output .= "Starting service.\n"; update_output_window($static_output); start_service($pkg_info['config_file']); + if($pkg_interface == "console") + echo "\n"; + $restart_sync = true; } function eval_once($toeval) { |