summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-24 13:36:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-24 13:36:05 -0400
commit96b0e3d6e9d6050c02b669ea2a1c168f05c40890 (patch)
tree8d583abf4d12ea097715ac4b582dbbfb35992a8b /Command
parent3887432c54e1da6d66d364bb7f153a3c6a1cace8 (diff)
quiet calls to transferkey
Diffstat (limited to 'Command')
-rw-r--r--Command/TransferKey.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Command/TransferKey.hs b/Command/TransferKey.hs
index a308e0175..28ace3cd2 100644
--- a/Command/TransferKey.hs
+++ b/Command/TransferKey.hs
@@ -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)