This commit is contained in:
Joey Hess 2012-10-29 11:58:29 -04:00
parent 76768ad977
commit 0ba4df3c1a
2 changed files with 2 additions and 5 deletions

View file

@ -180,7 +180,6 @@ startAssistant assistant daemonize webappwaiter = withThreadState $ \st -> do
d <- getAssistant id
st <- getAssistant threadState
dstatus <- getAssistant daemonStatusHandle
changechan <- getAssistant changeChan
commitchan <- getAssistant commitChan
transferqueue <- getAssistant transferQueue
transferslots <- getAssistant transferSlots

View file

@ -159,11 +159,9 @@ onAddSymlink file filestatus = go =<< liftAnnex (Backend.lookupFile file)
ensurestaged link daemonstatus
| scanComplete daemonstatus = addlink link
| otherwise = case filestatus of
Just s | not (changedrecently s) -> liftIO noChange
Just s
| not (afterLastDaemonRun (statusChangeTime s) daemonstatus) -> liftIO noChange
_ -> addlink link
where
changedrecently s =
afterLastDaemonRun (statusChangeTime s) daemonstatus
{- For speed, tries to reuse the existing blob for symlink target. -}
addlink link = do