whoops, I the debug prints

This commit is contained in:
Joey Hess 2014-08-20 12:14:56 -04:00
parent f92fd1b1e4
commit bf3133ebb0

View file

@ -71,14 +71,9 @@ changeLockPool a = do
withExclusiveLock :: (Git.Repo -> FilePath) -> Annex a -> Annex a
withExclusiveLock getlockfile a = do
lockfile <- fromRepo getlockfile
liftIO $ hPutStrLn stderr (show ("locking", lockfile))
liftIO $ hFlush stderr
createAnnexDirectory $ takeDirectory lockfile
mode <- annexFileMode
r <- bracketIO (lock lockfile mode) unlock (const a)
liftIO $ hPutStrLn stderr (show ("unlocked", lockfile))
liftIO $ hFlush stderr
return r
bracketIO (lock lockfile mode) unlock (const a)
where
#ifndef mingw32_HOST_OS
lock lockfile mode = do