commit:     19b387a0a399f4669c9dae7d0ee3e3c4370943f2
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Wed Jun 18 12:25:30 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 18 20:01:00 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=19b387a0

emerge-webrsync: render wget(1) output terse in nature

By default, the wget(1) utility prints a preamble that is seven lines in
length - including a blank line - before rendering its progress bar. It
really is rather distracting.

Render its output terse by passing the --no-verbose option. This option
impedes the interactive progress bar so also pass the --show-progress
option, unless emerge-webrsync was given the --quiet option.

It should be noted that emerge-webrsync already prints an informational
message containing the URI that it is about to fetch, before executing
the chosen user-agent.

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/emerge-webrsync | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync
index de5eb5d03b..6f6851ffa2 100755
--- a/bin/emerge-webrsync
+++ b/bin/emerge-webrsync
@@ -195,9 +195,9 @@ fetch_file() {
 
        case ${FETCHCOMMAND} in
                *wget*)
-                       opts="--continue"
-                       if (( opt[quiet] )); then
-                               opts+=" -q"
+                       opts="--continue --no-verbose"
+                       if (( ! opt[quiet] )); then
+                               opts+=" --show-progress"
                        fi
                        ;;
                *curl*)

Reply via email to