better progress

This commit is contained in:
Joey Hess 2010-10-12 17:51:41 -04:00
parent 0561ea1b28
commit 3d2b44ffe5

View file

@ -28,7 +28,7 @@ dummyRemove state url = return False
downloadUrl :: State -> Key -> FilePath -> IO Bool
downloadUrl state url file = do
putStrLn $ "download: " ++ url
result <- try $ rawSystem "curl" ["-o", file, url]
result <- try $ rawSystem "curl" ["-#", "-o", file, url]
case (result) of
Left _ -> return False
Right _ -> return True