incremental verification for retrieval from all export remotes
Only for export remotes so far, not export/import. Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
parent
90950a37e5
commit
2f2701137d
11 changed files with 73 additions and 54 deletions
|
@ -40,7 +40,7 @@ import qualified Remote.Helper.Chunked.Legacy as Legacy
|
|||
import Creds
|
||||
import Utility.Metered
|
||||
import Utility.Url (URLString, matchStatusCodeException, matchHttpExceptionContent)
|
||||
import Utility.Hash (IncrementalVerifier(..))
|
||||
import Annex.Verify
|
||||
import Annex.UUID
|
||||
import Remote.WebDAV.DavLocation
|
||||
import Types.ProposedAccepted
|
||||
|
@ -219,10 +219,10 @@ storeExportDav hdl f k loc p = case exportLocation loc of
|
|||
Left err -> giveup err
|
||||
|
||||
retrieveExportDav :: DavHandleVar -> Key -> ExportLocation -> FilePath -> MeterUpdate -> Annex Verification
|
||||
retrieveExportDav hdl _k loc d p = case exportLocation loc of
|
||||
Right src -> withDavHandle hdl $ \h -> runExport h $ \_dav -> do
|
||||
retrieveHelper src d p Nothing
|
||||
return UnVerified
|
||||
retrieveExportDav hdl k loc d p = case exportLocation loc of
|
||||
Right src -> verifyKeyContentIncrementally AlwaysVerify k $ \iv ->
|
||||
withDavHandle hdl $ \h -> runExport h $ \_dav ->
|
||||
retrieveHelper src d p iv
|
||||
Left err -> giveup err
|
||||
|
||||
checkPresentExportDav :: DavHandleVar -> Remote -> Key -> ExportLocation -> Annex Bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue