Pass annex.web-options to wget and curl after other options, so that eg --no-show-progress can be set by the user to disable the default --show-progress.

This commit is contained in:
Joey Hess 2016-12-13 11:56:23 -04:00
parent b0735d098d
commit 59fead6da3
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
4 changed files with 24 additions and 1 deletions

View file

@ -3,6 +3,9 @@ git-annex (6.20161211) UNRELEASED; urgency=medium
* Debian: Build webapp on armel.
* metadata --batch: Fix bug when conflicting metadata changes were
made in the same batch run.
* Pass annex.web-options to wget and curl after other options, so that
eg --no-show-progress can be set by the user to disable the default
--show-progress.
-- Joey Hess <id@joeyh.name> Sun, 11 Dec 2016 21:29:51 -0400

View file

@ -303,7 +303,7 @@ download' quiet url file uo = do
- it was asked to write to a file elsewhere. -}
go cmd opts = withTmpDir "downloadurl" $ \tmp -> do
absfile <- absPath file
let ps = addUserAgent uo $ reqParams uo++opts++[File absfile, File url]
let ps = addUserAgent uo $ opts++reqParams uo++[File absfile, File url]
boolSystem' cmd ps $ \p -> p { cwd = Just tmp }
quietopt s

View file

@ -22,3 +22,4 @@ parallel git annex importfeed --relaxed --quiet ::: http://feeds.feedburner.com/
I love git annex and use it daily.
> [[done]] --[[Joey]]

View file

@ -0,0 +1,19 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2016-12-13T15:49:20Z"
content="""
Since 2014, git-annex has used wget -q --show-progress to get a
progress bar without the several other lines of output it would normally
display. Whether a given git-annex build does this depends on what
version of wget it saw at configure time.
Running git-annex with --quiet will disable the wget progress bar (and
other git-annex output). This seems like the thing to do if you're running
git-annex concurrently. (Of course, git-annex also has its own built-in
concurrency with -J which can display multiple download progress bars in a
nice way.)
Still, might as well make the web-options come after the default options so
they can be overridden. Doing so.
"""]]