mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 08:45:13 +00:00
transfer: fix exception in dry-run mode
Only call archive.stats.show_progress(final=True) if we actually have an archive (== not in dry-run mode).
This commit is contained in:
parent
4d44b7d439
commit
2b935cfe41
1 changed files with 2 additions and 2 deletions
|
@ -134,9 +134,9 @@ def do_transfer(self, args, *, repository, manifest, cache, other_repository=Non
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
item = upgrader.upgrade_item(item=item)
|
item = upgrader.upgrade_item(item=item)
|
||||||
archive.add_item(item, show_progress=args.progress)
|
archive.add_item(item, show_progress=args.progress)
|
||||||
if args.progress:
|
|
||||||
archive.stats.show_progress(final=True)
|
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
|
if args.progress:
|
||||||
|
archive.stats.show_progress(final=True)
|
||||||
additional_metadata = upgrader.upgrade_archive_metadata(metadata=other_archive.metadata)
|
additional_metadata = upgrader.upgrade_archive_metadata(metadata=other_archive.metadata)
|
||||||
archive.save(additional_metadata=additional_metadata)
|
archive.save(additional_metadata=additional_metadata)
|
||||||
print(
|
print(
|
||||||
|
|
Loading…
Reference in a new issue