diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-23 13:27:13 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-23 13:27:13 -0400 |
commit | df07ccf404bf6a950fe0a0a31f315486c510a2f0 (patch) | |
tree | a7188982ebb24b9ca0122c7516143c5089aef197 /Command/Get.hs | |
parent | d4055b3dd2999a75381c4cae2ed30a7dcd32d3f2 (diff) |
make the assistant retry failed transfers
When a transfer fails, the progress info can be used to intelligently
retry it. If the transfer managed to make some progress, but did not
fully complete, then there's a good chance that a retry will finish it
(or at least make more progress).
Diffstat (limited to 'Command/Get.hs')
-rw-r--r-- | Command/Get.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Get.hs b/Command/Get.hs index 18153ce88..ab0e60b41 100644 --- a/Command/Get.hs +++ b/Command/Get.hs @@ -66,7 +66,7 @@ getKeyFile key file dest = dispatch =<< Remote.keyPossibilities key either (const False) id <$> Remote.hasKey r key | otherwise = return True docopy r continue = do - ok <- download (Remote.uuid r) key (Just file) $ do + ok <- download (Remote.uuid r) key (Just file) noRetry $ do showAction $ "from " ++ Remote.name r Remote.retrieveKeyFile r key (Just file) dest if ok then return ok else continue |