summaryrefslogtreecommitdiff
path: root/Assistant/Threads/Watcher.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-30 14:44:18 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-30 14:44:18 -0400
commitbab7e83221468905b76e28bb123ebe26e146b97b (patch)
tree19b3bf6d56f936a81c09be7b552c3a8616d45e27 /Assistant/Threads/Watcher.hs
parentca03b7fef80cf97e89cd785ec8393a27d5328d99 (diff)
cleanup daemonStatus accessors
Diffstat (limited to 'Assistant/Threads/Watcher.hs')
-rw-r--r--Assistant/Threads/Watcher.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Assistant/Threads/Watcher.hs b/Assistant/Threads/Watcher.hs
index dee71b731..8d155ecb1 100644
--- a/Assistant/Threads/Watcher.hs
+++ b/Assistant/Threads/Watcher.hs
@@ -133,18 +133,18 @@ onAddSymlink file filestatus = go =<< liftAnnex (Backend.lookupFile file)
link <- liftAnnex $ calcGitLink file key
ifM ((==) link <$> liftIO (readSymbolicLink file))
( do
- s <- daemonStatus
+ s <- getDaemonStatus
checkcontent key s
ensurestaged link s
, do
liftIO $ removeFile file
liftIO $ createSymbolicLink link file
- checkcontent key =<< daemonStatus
+ checkcontent key =<< getDaemonStatus
addlink link
)
go Nothing = do -- other symlink
link <- liftIO (readSymbolicLink file)
- ensurestaged link =<< daemonStatus
+ ensurestaged link =<< getDaemonStatus
{- This is often called on symlinks that are already
- staged correctly. A symlink may have been deleted