1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-12 23:29:07 +00:00

Merge pull request #8492 from ThomasWaldmann/fix-archive-size-transfer

work around missing size/nfiles archive metadata, fixes #8491
This commit is contained in:
TW 2024-10-27 13:16:13 +01:00 committed by GitHub
commit c7c204e713
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,8 +149,8 @@ class Archives:
exists=True, # repo has a valid archive item
username=archive_item.username,
hostname=archive_item.hostname,
size=archive_item.size,
nfiles=archive_item.nfiles,
size=archive_item.get("size", 0),
nfiles=archive_item.get("nfiles", 0),
comment=archive_item.comment, # not always present?
tags=tuple(sorted(getattr(archive_item, "tags", []))), # must be hashable
)