summaryrefslogtreecommitdiff
path: root/Annex/Content.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-02-03 16:48:40 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-02-03 16:48:40 -0400
commit44b115e0b11b3cb64301ed6dc478c597062ac0b6 (patch)
tree5ca8be141278790fcf1ca0c6a739fa68ccc59415 /Annex/Content.hs
parentd8fb97806c430be8358b2b77d67c02e876278d2f (diff)
parent146c36ca545a297f1e44e3cf2c91f3c0e17c909f (diff)
Merge branch 'master' into ghc7.4
Conflicts: Utility/Misc.hs
Diffstat (limited to 'Annex/Content.hs')
-rw-r--r--Annex/Content.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Annex/Content.hs b/Annex/Content.hs
index dcfd43866..d10370bc9 100644
--- a/Annex/Content.hs
+++ b/Annex/Content.hs
@@ -25,7 +25,6 @@ module Annex.Content (
preseedTmp,
) where
-import System.IO.Error (try)
import Control.Exception (bracket_)
import System.Posix.Types
@@ -79,7 +78,7 @@ lockContent key a = do
where
lock Nothing = return Nothing
lock (Just l) = do
- v <- try $ setLock l (WriteLock, AbsoluteSeek, 0, 0)
+ v <- tryIO $ setLock l (WriteLock, AbsoluteSeek, 0, 0)
case v of
Left _ -> error "content is locked"
Right _ -> return $ Just l