fix another fallback bug
This commit is contained in:
parent
86e8532c0a
commit
93be3296fc
1 changed files with 6 additions and 2 deletions
|
@ -146,7 +146,9 @@ toChunkList k (chunksize, chunkcount) = takeChunkKeyStream chunkcount $
|
||||||
chunkKeyStream k chunksize
|
chunkKeyStream k chunksize
|
||||||
|
|
||||||
{- Removes all chunks of a key from a remote, by calling a remover
|
{- Removes all chunks of a key from a remote, by calling a remover
|
||||||
- action on each. The remover action should succeed even if asked to
|
- action on each.
|
||||||
|
-
|
||||||
|
- The remover action should succeed even if asked to
|
||||||
- remove a key that is not present on the remote.
|
- remove a key that is not present on the remote.
|
||||||
-
|
-
|
||||||
- This action may be called on a chunked key. It will simply remove it.
|
- This action may be called on a chunked key. It will simply remove it.
|
||||||
|
@ -231,7 +233,9 @@ hasKeyChunks checker u chunkconfig encryptor basek = do
|
||||||
case v of
|
case v of
|
||||||
Left e -> checklists e ls
|
Left e -> checklists e ls
|
||||||
Right True -> return (Right True)
|
Right True -> return (Right True)
|
||||||
Right False -> checklists impossible ls
|
Right False
|
||||||
|
| null ls -> return (Right False)
|
||||||
|
| otherwise -> checklists impossible ls
|
||||||
| otherwise = checklists impossible ls
|
| otherwise = checklists impossible ls
|
||||||
|
|
||||||
checkchunks :: [Key] -> Annex (Either String Bool)
|
checkchunks :: [Key] -> Annex (Either String Bool)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue