note about why curl -# is used
I'd rather use wget really, but as git-annex uses libcurl elsewhere, it seems best to stick with curl. And making this configurable seems overboard.
This commit is contained in:
parent
7121526385
commit
ec746c511f
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ exists url =
|
|||
download :: URLString -> FilePath -> Annex Bool
|
||||
download url file = do
|
||||
showOutput -- make way for curl progress bar
|
||||
-- Uses the -# progress display, because the normal one is very
|
||||
-- confusing when resuming, showing the remainder to download
|
||||
-- as the whole file, and not indicating how much percent was
|
||||
-- downloaded before the resume.
|
||||
liftIO $ boolSystem "curl" [Params "-L -C - -# -o", File file, File url]
|
||||
|
||||
{- Downloads a small file. -}
|
||||
|
|
Loading…
Add table
Reference in a new issue