diff options
author | Joey Hess <joey@kitenet.net> | 2012-03-04 03:36:39 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-03-04 03:36:39 -0400 |
commit | 7ba79cfb8c5c2a0fcb1472ab67bb777999e8e88a (patch) | |
tree | 361d18e7f4f42e811f2d48473012f8c3daaec0ff /Remote/Hook.hs | |
parent | 46383140015fb607ba7d9c7bf5a3c2c435dfb548 (diff) |
thread through original key to retrieveEnctypted
Allows showing progress bar for this last case of the directory special
remote.
Diffstat (limited to 'Remote/Hook.hs')
-rw-r--r-- | Remote/Hook.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Remote/Hook.hs b/Remote/Hook.hs index c7d710f19..b37d5e215 100644 --- a/Remote/Hook.hs +++ b/Remote/Hook.hs @@ -114,8 +114,8 @@ retrieve h k f = runHook h "retrieve" k (Just f) $ return True retrieveCheap :: String -> Key -> FilePath -> Annex Bool retrieveCheap _ _ _ = return False -retrieveEncrypted :: String -> (Cipher, Key) -> FilePath -> Annex Bool -retrieveEncrypted h (cipher, enck) f = withTmp enck $ \tmp -> +retrieveEncrypted :: String -> (Cipher, Key) -> Key -> FilePath -> Annex Bool +retrieveEncrypted h (cipher, enck) _ f = withTmp enck $ \tmp -> runHook h "retrieve" enck (Just tmp) $ liftIO $ catchBoolIO $ do withDecryptedContent cipher (L.readFile tmp) $ L.writeFile f return True |