summaryrefslogtreecommitdiff
path: root/Remote/Bup.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-03-04 03:36:39 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-03-04 03:36:39 -0400
commit7ba79cfb8c5c2a0fcb1472ab67bb777999e8e88a (patch)
tree361d18e7f4f42e811f2d48473012f8c3daaec0ff /Remote/Bup.hs
parent46383140015fb607ba7d9c7bf5a3c2c435dfb548 (diff)
thread through original key to retrieveEnctypted
Allows showing progress bar for this last case of the directory special remote.
Diffstat (limited to 'Remote/Bup.hs')
-rw-r--r--Remote/Bup.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Remote/Bup.hs b/Remote/Bup.hs
index a4f43a3f3..4ac91e945 100644
--- a/Remote/Bup.hs
+++ b/Remote/Bup.hs
@@ -129,8 +129,8 @@ retrieve buprepo k f = do
retrieveCheap :: BupRepo -> Key -> FilePath -> Annex Bool
retrieveCheap _ _ _ = return False
-retrieveEncrypted :: BupRepo -> (Cipher, Key) -> FilePath -> Annex Bool
-retrieveEncrypted buprepo (cipher, enck) f = do
+retrieveEncrypted :: BupRepo -> (Cipher, Key) -> Key -> FilePath -> Annex Bool
+retrieveEncrypted buprepo (cipher, enck) _ f = do
let params = bupParams "join" buprepo [Param $ show enck]
liftIO $ catchBoolIO $ do
(pid, h) <- hPipeFrom "bup" $ toCommand params