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:
parent
b0735d098d
commit
59fead6da3
4 changed files with 24 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -22,3 +22,4 @@ parallel git annex importfeed --relaxed --quiet ::: http://feeds.feedburner.com/
|
|||
I love git annex and use it daily.
|
||||
|
||||
|
||||
> [[done]] --[[Joey]]
|
||||
|
|
|
@ -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.
|
||||
"""]]
|
Loading…
Add table
Reference in a new issue