Thanks, applied as bb412159bc1cc375ee8523280c4857ae7dab14b6. Michael
[sent from post-receive hook] On Thu, 12 Sep 2024 14:11:52 +0200, Bruno Thomsen <[email protected]> wrote: > Change wget progress to none when verbose is chosen, > so it's possible to see download URLs. > > Tested on GNU Wget2 2.1.0 (Fedora 40) and GNU Wget 1.21.4 (Ubuntu 24.04). > > Signed-off-by: Bruno Thomsen <[email protected]> > Message-Id: <[email protected]> > Signed-off-by: Michael Olbrich <[email protected]> > > diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh > index 4951abe5abf1..eea56f8afbab 100644 > --- a/scripts/lib/ptxd_make_get.sh > +++ b/scripts/lib/ptxd_make_get.sh > @@ -94,7 +94,11 @@ ptxd_make_get_http() { > return > elif [ ! -e "${path}" ]; then > temp_file="$(mktemp "${path}.XXXXXXXXXX")" || ptxd_bailout "failed to > create tempfile" > - if [ -n "${PTXDIST_QUIET}" ]; then > + if [ "${PTXDIST_VERBOSE}" == "1" ]; then > + if wget --version | grep "GNU Wget2"; then > + progress=none > + fi > + elif [ -n "${PTXDIST_QUIET}" ]; then > progress=dot > else > progress=bar:force
