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:
Joey Hess 2011-08-20 12:52:29 -04:00
parent 7121526385
commit ec746c511f

View file

@ -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. -}