summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-03-18 20:47:41 +0200
committerLars Wirzenius <liw@liw.fi>2015-03-18 20:47:41 +0200
commitc6a94d235b376fe8558bb0195f97bc5d6b51e182 (patch)
tree2b8e9cb34627bc480c0e8b54debb0b63d891f2aa
parent3607c88f60861d5448285bd8f2ef78b9aecb99b5 (diff)
downloadobnam-c6a94d235b376fe8558bb0195f97bc5d6b51e182.tar.gz
Disable chunk verification in restore
-rw-r--r--obnamlib/plugins/restore_plugin.py11
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)