Skip to content

Commit 7d4c05d

Browse files
transfer: fix AttributeError with --dry-run, see #9199
1 parent 017dfec commit 7d4c05d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/borg/archiver/transfer_cmd.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@
2020

2121

2222
def transfer_chunks(
23-
upgrader, other_repository, other_manifest, other_chunks, archive, cache, recompress, dry_run, chunker_params=None
23+
upgrader,
24+
other_repository,
25+
other_manifest,
26+
other_chunks,
27+
archive,
28+
cache,
29+
manifest,
30+
recompress,
31+
dry_run,
32+
chunker_params=None,
2433
):
2534
"""
2635
Transfer chunks from another repository to the current repository.
@@ -41,7 +50,7 @@ def transfer_chunks(
4150
file = ChunkIteratorFileWrapper(chunk_iterator)
4251

4352
# Create a chunker with the specified parameters
44-
chunker = get_chunker(*chunker_params, key=archive.key, sparse=False)
53+
chunker = get_chunker(*chunker_params, key=manifest.key, sparse=False)
4554
for chunk in chunker.chunkify(file):
4655
if not dry_run:
4756
chunk_id, data = cached_hash(chunk, archive.key.id_hash)
@@ -226,6 +235,7 @@ def do_transfer(self, args, *, repository, manifest, cache, other_repository=Non
226235
other_chunks,
227236
archive,
228237
cache,
238+
manifest,
229239
args.recompress,
230240
dry_run,
231241
args.chunker_params,

0 commit comments

Comments
 (0)