catch lockContentForRemoval exception
removeKey should not throw exceptions, so catch exception there In Assistant.Unused, keep trying to drop other keys if one drop fails
This commit is contained in:
parent
2df31610ed
commit
370757087d
3 changed files with 6 additions and 2 deletions
|
@ -377,7 +377,9 @@ keyUrls gc repo r key = map tourl locs'
|
|||
dropKey :: Remote -> State -> Key -> Annex Bool
|
||||
dropKey r st key = do
|
||||
repo <- getRepo r
|
||||
dropKey' repo r st key
|
||||
catchNonAsync
|
||||
(dropKey' repo r st key)
|
||||
(\e -> warning (show e) >> return False)
|
||||
|
||||
dropKey' :: Git.Repo -> Remote -> State -> Key -> Annex Bool
|
||||
dropKey' repo r (State connpool duc _) key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue