convert from Utility.LockPool to Annex.LockPool everywhere
This commit is contained in:
parent
cd22340c99
commit
aaf1ef268d
8 changed files with 59 additions and 46 deletions
|
@ -37,7 +37,7 @@ import Types.CleanupActions
|
|||
import Annex.Index (addGitEnv)
|
||||
#ifndef mingw32_HOST_OS
|
||||
import Annex.Perms
|
||||
import Utility.LockPool
|
||||
import Annex.LockPool
|
||||
#endif
|
||||
|
||||
{- Generates parameters to ssh to a given host (or user@host) on a given
|
||||
|
@ -159,7 +159,7 @@ sshCleanup = mapM_ cleanup =<< enumSocketFiles
|
|||
let lockfile = socket2lock socketfile
|
||||
unlockFile lockfile
|
||||
mode <- annexFileMode
|
||||
v <- liftIO $ noUmask mode $ tryLockExclusive (Just mode) lockfile
|
||||
v <- noUmask mode $ tryLockExclusive (Just mode) lockfile
|
||||
case v of
|
||||
Nothing -> noop
|
||||
Just lck -> do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue