Set --clobber when running wget to ensure resuming works properly.

This commit is contained in:
Joey Hess 2013-08-21 18:19:01 -04:00
parent 0912e752b5
commit d603f536bd
2 changed files with 2 additions and 1 deletions

View file

@ -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,