1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-29 11:16:43 +00:00

transfer: rather talk of presence than refcount

This commit is contained in:
Thomas Waldmann 2024-08-23 14:42:37 +02:00
parent 20c180c317
commit c5023da729
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -100,8 +100,8 @@ def do_transfer(self, args, *, repository, manifest, cache, other_repository=Non
if "chunks" in item:
chunks = []
for chunk_id, size in item.chunks:
refcount = cache.seen_chunk(chunk_id, size)
if refcount == 0: # target repo does not yet have this chunk
chunk_present = cache.seen_chunk(chunk_id, size) != 0
if not chunk_present: # target repo does not yet have this chunk
if not dry_run:
cdata = other_repository.get(chunk_id)
if args.recompress == "never":