assistant: Fix bug that caused v6 pointer files to be annexed by the assistant.
This commit is contained in:
parent
c61f038fc9
commit
fb8ab2469d
3 changed files with 9 additions and 1 deletions
|
@ -221,7 +221,11 @@ shouldRestage :: DaemonStatus -> Bool
|
|||
shouldRestage ds = scanComplete ds || forceRestage ds
|
||||
|
||||
onAddUnlocked :: Bool -> GetFileMatcher -> Handler
|
||||
onAddUnlocked = onAddUnlocked' False contentchanged addassociatedfile addlink samefilestatus
|
||||
onAddUnlocked symlinkssupported matcher f fs = do
|
||||
mk <- liftIO $ isPointerFile f
|
||||
case mk of
|
||||
Nothing -> onAddUnlocked' False contentchanged addassociatedfile addlink samefilestatus symlinkssupported matcher f fs
|
||||
Just k -> addlink f k
|
||||
where
|
||||
addassociatedfile key file =
|
||||
Database.Keys.addAssociatedFile key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue