From ec746c511f5666fc214eba1a477d1ababfe9d367 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 20 Aug 2011 12:52:29 -0400 Subject: 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. --- Remote/Helper/Url.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Remote/Helper') diff --git a/Remote/Helper/Url.hs b/Remote/Helper/Url.hs index d3aea5622..af1fee8f0 100644 --- a/Remote/Helper/Url.hs +++ b/Remote/Helper/Url.hs @@ -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. -} -- cgit v1.2.3