fsck --from: If a download from a remote fails, propigate the failure.

This commit is contained in:
Joey Hess 2015-02-10 13:10:58 -04:00
parent 00e75c7a2a
commit 4794ef083a
4 changed files with 32 additions and 1 deletions

View file

@ -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