diff options
author | Joey Hess <joey@kitenet.net> | 2014-07-29 17:17:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-07-29 17:18:49 -0400 |
commit | e55bc5640997362f1f77a5423f7556b307377f61 (patch) | |
tree | 84971796a95bfad3f2867e70ae83eb856d1bdaad /Remote/Directory.hs | |
parent | 99e69a42d1afc02c381657e82547dfcc9f2a6ae2 (diff) |
allow Retriever action to update the progress meter
Needed for eg, Remote.External.
Generally, any Retriever that stores content in a file is responsible for
updating the meter, while ones that procude a lazy bytestring cannot update
the meter, so are not asked to.
Diffstat (limited to 'Remote/Directory.hs')
-rw-r--r-- | Remote/Directory.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Remote/Directory.hs b/Remote/Directory.hs index 9f2775965..37942a295 100644 --- a/Remote/Directory.hs +++ b/Remote/Directory.hs @@ -137,8 +137,8 @@ store d chunkconfig k b p = liftIO $ do retrieve :: FilePath -> ChunkConfig -> Preparer Retriever retrieve d (LegacyChunks _) = Legacy.retrieve locations d -retrieve d _ = simplyPrepare $ byteRetriever $ - \k -> liftIO $ L.readFile =<< getLocation d k +retrieve d _ = simplyPrepare $ byteRetriever $ \k -> + liftIO $ L.readFile =<< getLocation d k retrieveCheap :: FilePath -> ChunkConfig -> Key -> FilePath -> Annex Bool -- no cheap retrieval possible for chunks |