Run wget with -nv instead of -q, so it will display HTTP errors.

This adds one extra line of output when a download is successful,
after the progress bar. I don't much like that, but wget does not provide a
way to show HTTP errors without it.
This commit is contained in:
Joey Hess 2017-02-20 15:14:56 -04:00
parent 3488679a81
commit 4a397b5313
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
5 changed files with 40 additions and 5 deletions

View file

@ -279,8 +279,8 @@ download' quiet url file uo = do
-}
#ifndef __ANDROID__
wgetparams = concat
[ if Build.SysConfig.wgetquietprogress && not quiet
then [Param "-q", Param "--show-progress"]
[ if Build.SysConfig.wgetunclutter && not quiet
then [Param "-nv", Param "--show-progress"]
else []
, [ Param "--clobber", Param "-c", Param "-O"]
]