aboutsummaryrefslogtreecommitdiff
path: root/Utility/Url.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-08-21 18:19:01 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-08-21 18:19:01 -0400
commit40e63f87c409d47686480a7ddf8b5034d1d7ddcd (patch)
tree570308718b696b39144c1f5470662fb14be97110 /Utility/Url.hs
parent813f94706e0f4c9afa529f1eabe3f4100f45b50d (diff)
Set --clobber when running wget to ensure resuming works properly.
Diffstat (limited to 'Utility/Url.hs')
-rw-r--r--Utility/Url.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Url.hs b/Utility/Url.hs
index 508b9eeb4..2f2ec1dc0 100644
--- a/Utility/Url.hs
+++ b/Utility/Url.hs
@@ -110,7 +110,7 @@ download' quiet url headers options file =
_ -> return False
where
headerparams = map (\h -> Param $ "--header=" ++ h) headers
- wget = go "wget" $ headerparams ++ quietopt "-q" ++ [Params "-c -O"]
+ wget = go "wget" $ headerparams ++ quietopt "-q" ++ [Params "--clobber -c -O"]
{- Uses the -# progress display, because the normal
- one is very confusing when resuming, showing
- the remainder to download as the whole file,