fix lost metering for fallback rsyncs
08814327ff
accidentially got rid of it,
when it removed commandMetered.
This commit is contained in:
parent
abe8346dca
commit
cb05ef06bf
3 changed files with 27 additions and 19 deletions
|
@ -113,11 +113,12 @@ dropKey r key = onRemote NoConsumeStdin r (boolSystem, return False) "dropkey"
|
|||
|
||||
rsyncHelper :: Maybe MeterUpdate -> [CommandParam] -> Annex Bool
|
||||
rsyncHelper m params = do
|
||||
showOutput -- make way for progress bar
|
||||
a <- case m of
|
||||
Nothing -> return $ rsync params
|
||||
Nothing -> do
|
||||
showOutput -- make way for progress bar
|
||||
return $ rsync params
|
||||
Just meter -> do
|
||||
oh <- mkOutputHandler
|
||||
oh <- mkOutputHandlerQuiet
|
||||
return $ rsyncProgress oh meter params
|
||||
ifM (liftIO a)
|
||||
( return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue