diff --git a/src/borg/archive.py b/src/borg/archive.py index 176653c1c..d30cb4a44 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -1528,7 +1528,7 @@ class ArchiveRecreater: # The target.chunker will read the file contents through ChunkIteratorFileWrapper chunk-by-chunk # (does not load the entire file into memory) file = ChunkIteratorFileWrapper(chunk_iterator) - return target.chunker.chunkify(file) + yield from target.chunker.chunkify(file) else: for chunk in chunk_iterator: yield chunk.data diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index c51b06b74..711aca68e 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -1823,6 +1823,7 @@ class ArchiverTestCase(ArchiverTestCaseBase): self.cmd('recreate', self.repository_location, '--chunker-params', 'default') self.check_cache() # test1 and test2 do deduplicate after recreate + assert int(self.cmd('list', self.repository_location + '::test1', 'input/large_file', '--format={size}')) assert not int(self.cmd('list', self.repository_location + '::test1', 'input/large_file', '--format', '{unique_chunks}'))