summaryrefslogtreecommitdiff
path: root/Remote/Directory.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-01-19 16:07:36 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-01-19 16:07:36 -0400
commit06b0cb6224377fd2ea86e4e209e94a502f92716e (patch)
treeae6f1a631aebbdd18a2aef7ff7ec7299d9214d26 /Remote/Directory.hs
parent94aa6b42b5bc5c37c7017fb3493010a56a9d211e (diff)
add tmp flag parameter to retrieveKeyFile
Diffstat (limited to 'Remote/Directory.hs')
-rw-r--r--Remote/Directory.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Remote/Directory.hs b/Remote/Directory.hs
index 23265dabc..9705d5843 100644
--- a/Remote/Directory.hs
+++ b/Remote/Directory.hs
@@ -109,8 +109,9 @@ storeHelper d key a = do
preventWrite dir
return ok
-retrieve :: FilePath -> Key -> FilePath -> Annex Bool
-retrieve d k f = liftIO $ withStoredFile d k $ \file -> copyFileExternal file f
+retrieve :: FilePath -> Key -> Bool -> FilePath -> Annex Bool
+retrieve d k _ f = do
+ liftIO $ withStoredFile d k $ \file -> copyFileExternal file f
retrieveEncrypted :: FilePath -> (Cipher, Key) -> FilePath -> Annex Bool
retrieveEncrypted d (cipher, enck) f =