quiet calls to transferkey

This commit is contained in:
Joey Hess 2012-09-24 13:36:05 -04:00
parent 3887432c54
commit 96b0e3d6e9
2 changed files with 6 additions and 2 deletions

View file

@ -74,6 +74,7 @@ startTransfer st dstatus program t info = case (transferRemote info, associatedF
where
params =
[ Param "transferkey"
, Param "--quiet"
, Param $ key2file $ transferKey t
, Param $ if isdownload
then "--from"

View file

@ -42,7 +42,7 @@ start to from file key =
_ -> error "specify either --from or --to"
toPerform :: Remote -> Key -> AssociatedFile -> CommandPerform
toPerform remote key file = next $
toPerform remote key file = go $
upload (uuid remote) key file forwardRetry $ \p -> do
ok <- Remote.storeKey remote key file p
when ok $
@ -50,6 +50,9 @@ toPerform remote key file = next $
return ok
fromPerform :: Remote -> Key -> AssociatedFile -> CommandPerform
fromPerform remote key file = next $
fromPerform remote key file = go $
download (uuid remote) key file forwardRetry $
getViaTmp key $ Remote.retrieveKeyFile remote key file
go :: Annex Bool -> CommandPerform
go a = ifM a ( liftIO exitSuccess, liftIO exitFailure)