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:
parent
948bc4cdf9
commit
eb75390240
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue