mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-04 06:21:46 +00:00
cache sync: check archive TAM
This commit is contained in:
parent
462c1bdf2e
commit
277b0b81a8
1 changed files with 2 additions and 1 deletions
|
@ -755,7 +755,8 @@ def fetch_and_build_idx(archive_id, decrypted_repository, chunk_idx):
|
|||
nonlocal processed_item_metadata_chunks
|
||||
csize, data = decrypted_repository.get(archive_id)
|
||||
chunk_idx.add(archive_id, 1, len(data))
|
||||
archive = ArchiveItem(internal_dict=msgpack.unpackb(data))
|
||||
archive, verified = self.key.unpack_and_verify_archive(data, force_tam_not_required=True)
|
||||
archive = ArchiveItem(internal_dict=archive)
|
||||
if archive.version not in (1, 2): # legacy
|
||||
raise Exception("Unknown archive metadata version")
|
||||
if archive.version == 1:
|
||||
|
|
Loading…
Reference in a new issue