1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00

transfer: make sure items with chunks have precomputed size

This commit is contained in:
Thomas Waldmann 2022-05-03 17:13:37 +02:00
parent 98b7dc0bf5
commit ba1dbe6111

View file

@ -348,6 +348,7 @@ def do_transfer(self, args, *,
def upgrade_item(item):
"""upgrade item as needed, get rid of legacy crap"""
item._dict.pop('acl', None) # remove remnants of bug in attic <= 0.13
item.get_size(memorize=True) # if not already present: compute+remember size for items with chunks
return item
dry_run = args.dry_run