diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-21 14:50:14 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-21 14:50:14 -0400 |
commit | 226781c047a50747f5c60a6cf4920a43cd3a3a73 (patch) | |
tree | 0a5ead6c80110d533630db1875a9ebc10dea176d /Remote/Hook.hs | |
parent | 6873d785f050cbfb2aa7bd67fcdb29ab585ec291 (diff) |
unify types
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 cf0425590..716a81835 100644 --- a/Remote/Hook.hs +++ b/Remote/Hook.hs @@ -103,12 +103,12 @@ runHook hooktype hook k f a = maybe (return False) run =<< lookupHook hooktype h return False ) -store :: String -> Key -> AssociatedFile -> ProgressCallback -> Annex Bool +store :: String -> Key -> AssociatedFile -> MeterUpdate -> Annex Bool store h k _f _p = do src <- inRepo $ gitAnnexLocation k runHook h "store" k (Just src) $ return True -storeEncrypted :: String -> (Cipher, Key) -> Key -> ProgressCallback -> Annex Bool +storeEncrypted :: String -> (Cipher, Key) -> Key -> MeterUpdate -> Annex Bool storeEncrypted h (cipher, enck) k _p = withTmp enck $ \tmp -> do src <- inRepo $ gitAnnexLocation k liftIO $ withEncryptedContent cipher (L.readFile src) $ L.writeFile tmp |