tweak
This commit is contained in:
parent
76768ad977
commit
0ba4df3c1a
2 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue