diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-12 16:10:15 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-12 16:10:15 -0400 |
commit | 20acda0423b1a00eae64296835679887ca79ea2f (patch) | |
tree | 3520f9c0b8a6ccffd17d23cd7f9962d5f28be54e /Backend.hs | |
parent | 2ac47a3a59b2b9b8980b4a9d3277bcb653bcb026 (diff) |
more state
Diffstat (limited to 'Backend.hs')
-rw-r--r-- | Backend.hs | 4 |
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 |