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