cleanup output

This commit is contained in:
Joey Hess 2010-10-17 13:17:34 -04:00
parent 6d4fc0ca7e
commit 8398b9ab4a

View file

@ -9,6 +9,7 @@ import System.Cmd
import System.Exit
import BackendTypes
import Core
backend = Backend {
name = "URL",
@ -33,7 +34,8 @@ dummyOk url = return True
downloadUrl :: Key -> FilePath -> Annex Bool
downloadUrl key file = do
liftIO $ putStrLn $ "download: " ++ url
showNote "downloading"
liftIO $ putStrLn "" -- make way for curl progress bar
result <- liftIO $ rawSystem "curl" ["-#", "-o", file, url]
if (result == ExitSuccess)
then return True