diff options
author | Joey Hess <joey@kitenet.net> | 2013-04-11 17:15:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-04-11 17:32:31 -0400 |
commit | 67524c3a41a2c0b5e8c34bcbfde737ca50fc191b (patch) | |
tree | 2d6e8c0fcf36efe7274c9bc1f83c85635412be59 /Command/Move.hs | |
parent | 90f10c58ba491a17d1b59e91d8c730f80cd25bce (diff) |
connect existing meters to the transfer log for downloads
Most remotes have meters in their implementations of retrieveKeyFile
already. Simply hooking these up to the transfer log makes that information
available. Easy peasy.
This is particularly valuable information for encrypted remotes, which
otherwise bypass the assistant's polling of temp files, and so don't have
good progress bars yet.
Still some work to do here (see progressbars.mdwn changes), but this
is entirely an improvement from the lack of progress bars for encrypted
downloads.
Diffstat (limited to 'Command/Move.hs')
-rw-r--r-- | Command/Move.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Move.hs b/Command/Move.hs index 31daf5529..ec0e68bb7 100644 --- a/Command/Move.hs +++ b/Command/Move.hs @@ -144,9 +144,9 @@ fromPerform src move key file = moveLock move key $ , handle move =<< go ) where - go = download (Remote.uuid src) key (Just file) noRetry $ do + go = download (Remote.uuid src) key (Just file) noRetry $ \p -> do showAction $ "from " ++ Remote.name src - getViaTmp key $ Remote.retrieveKeyFile src key (Just file) + getViaTmp key $ \t -> Remote.retrieveKeyFile src key (Just file) t p handle _ False = stop -- failed handle False True = next $ return True -- copy complete handle True True = do -- finish moving |