1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-13 01:45:56 +00:00

tests: fix for non-unique archive names

For Archive(), always use the archive id, not the archive name!
This commit is contained in:
Thomas Waldmann 2024-09-19 00:49:57 +02:00
parent 948bc4cdf9
commit eb75390240
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -169,7 +169,8 @@ def open_archive(repo_path, name):
repository = Repository(repo_path, exclusive=True)
with repository:
manifest = Manifest.load(repository, Manifest.NO_OPERATION_CHECK)
archive = Archive(manifest, name)
archive_info = manifest.archives.get_one(name)
archive = Archive(manifest, archive_info.id)
return archive, repository