mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-08 14:05:41 +08:00
tests: Don't move bz2 restic archives
This commit is contained in:
parent
7e1a11d191
commit
fe81ad4e78
1 changed files with 5 additions and 3 deletions
|
@ -102,6 +102,8 @@ def download_restic_binaries(arch: str = "amd64") -> bool:
|
|||
# Assume we have a zip or tar.gz
|
||||
shutil.unpack_archive(full_path, dest_dir)
|
||||
try:
|
||||
# We don't drop the bz2 files on disk, so no need to move them to ARCHIVES
|
||||
if arch_suffix != "bz2":
|
||||
if dest_dir.joinpath("ARCHIVES").joinpath(filename).is_file():
|
||||
dest_dir.joinpath("ARCHIVES").joinpath(filename).unlink()
|
||||
shutil.move(full_path, dest_dir.joinpath("ARCHIVES").joinpath(filename))
|
||||
|
|
Loading…
Add table
Reference in a new issue