diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-03-18 20:47:41 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-03-18 20:47:41 +0200 |
commit | c6a94d235b376fe8558bb0195f97bc5d6b51e182 (patch) | |
tree | 2b8e9cb34627bc480c0e8b54debb0b63d891f2aa | |
parent | 3607c88f60861d5448285bd8f2ef78b9aecb99b5 (diff) | |
download | obnam-c6a94d235b376fe8558bb0195f97bc5d6b51e182.tar.gz |
Disable chunk verification in restore
-rw-r--r-- | obnamlib/plugins/restore_plugin.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py index a7aba9b1..7d54f412 100644 --- a/obnamlib/plugins/restore_plugin.py +++ b/obnamlib/plugins/restore_plugin.py @@ -336,8 +336,15 @@ class RestorePlugin(obnamlib.ObnamPlugin): f.seek(-1, 1) f.write('\0') - def verify_chunk_checksum(self, data, chunkid): - self.repo.validate_chunk_content(chunkid) + def verify_chunk_checksum(self, data, chunk_id): + # FIXME: RepositoryInterface doesn't currently seem to provide + # the necessary tools for implementing this method. So + # currently we do nothing. Later, this should be fixed. + # + # We used to call the validate_chunk_content method, but that + # doesn't do the right thing, but does cause the chunk data to + # be downloaded twice. + pass def restore_fifo(self, gen, filename, metadata): logging.debug('restoring fifo %s' % filename) |