summaryrefslogtreecommitdiff
path: root/Backend.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-12 16:10:15 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-12 16:10:15 -0400
commit20acda0423b1a00eae64296835679887ca79ea2f (patch)
tree3520f9c0b8a6ccffd17d23cd7f9962d5f28be54e /Backend.hs
parent2ac47a3a59b2b9b8980b4a9d3277bcb653bcb026 (diff)
more state
Diffstat (limited to 'Backend.hs')
-rw-r--r--Backend.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Backend.hs b/Backend.hs
index ddfd8b19d..622d558e3 100644
--- a/Backend.hs
+++ b/Backend.hs
@@ -68,7 +68,7 @@ retrieveFile backends state file dest = do
Nothing -> return False
Just b -> do
key <- lookupKey b state file
- (retrieveKeyFile b) key dest
+ (retrieveKeyFile b) state key dest
{- Drops the key for a file from the backend that has it. -}
dropFile :: [Backend] -> State -> FilePath -> IO (Maybe Key)
@@ -78,7 +78,7 @@ dropFile backends state file = do
Nothing -> return Nothing
Just b -> do
key <- lookupKey b state file
- (removeKey b) key
+ (removeKey b) state key
removeFile $ backendFile b state file
return $ Just key