files with only 1 linkCount may still be unlocked
When on crippled filesystem, or without annex.thin set.
This commit is contained in:
parent
5b51db7645
commit
74bbdfa888
1 changed files with 1 additions and 2 deletions
|
@ -588,7 +588,6 @@ getKeyStatus key = ifM isDirect
|
||||||
( return KeyUnlocked
|
( return KeyUnlocked
|
||||||
, catchDefaultIO KeyMissing $ do
|
, catchDefaultIO KeyMissing $ do
|
||||||
obj <- calcRepo $ gitAnnexLocation key
|
obj <- calcRepo $ gitAnnexLocation key
|
||||||
unlocked <- ((> 1) . linkCount <$> liftIO (getFileStatus obj))
|
unlocked <- not . null <$> Database.Keys.getAssociatedFiles key
|
||||||
<&&> (not . null <$> Database.Keys.getAssociatedFiles key)
|
|
||||||
return $ if unlocked then KeyUnlocked else KeyLocked
|
return $ if unlocked then KeyUnlocked else KeyLocked
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue