1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 09:47:58 +00:00

cache sync: fix incorrect .integrity location for .compact

This commit is contained in:
Marian Beermann 2017-06-09 11:13:13 +02:00
parent 3789459a41
commit 92a01f9d6c

View file

@ -601,7 +601,7 @@ def write_archive_index(archive_id, chunk_idx):
fn_tmp = mkpath(archive_id, suffix='.tmp')
try:
with DetachedIntegrityCheckedFile(path=fn_tmp, write=True,
filename=bin_to_hex(archive_id)) as fd:
filename=bin_to_hex(archive_id) + '.compact') as fd:
chunk_idx.write(fd)
except Exception:
os.unlink(fn_tmp)