fsck: When fscking a dead repo, avoid incorrect "fixing location log" message.
keyLocations doesn't return locations in dead repos, but if we're fscking a dead repo, we want to look at what locations are actually logged for it.
This commit is contained in:
parent
5847909cad
commit
cd7929034a
2 changed files with 3 additions and 1 deletions
|
@ -235,7 +235,7 @@ verifyLocationLogRemote key desc remote present =
|
|||
|
||||
verifyLocationLog' :: Key -> String -> Bool -> UUID -> (LogStatus -> Annex ()) -> Annex Bool
|
||||
verifyLocationLog' key desc present u updatestatus = do
|
||||
uuids <- Remote.keyLocations key
|
||||
uuids <- loggedLocations key
|
||||
case (present, u `elem` uuids) of
|
||||
(True, False) -> do
|
||||
fix InfoPresent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue