fsck --from: If a download from a remote fails, propigate the failure.
This commit is contained in:
parent
00e75c7a2a
commit
4794ef083a
4 changed files with 32 additions and 1 deletions
|
@ -141,7 +141,10 @@ performRemote key file backend numcopies remote =
|
|||
dispatch (Right True) = withtmp $ \tmpfile ->
|
||||
ifM (getfile tmpfile)
|
||||
( go True (Just tmpfile)
|
||||
, go True Nothing
|
||||
, do
|
||||
warning "failed to download file from remote"
|
||||
go True Nothing
|
||||
return False
|
||||
)
|
||||
dispatch (Right False) = go False Nothing
|
||||
go present localcopy = check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue