mirror of https://github.com/borgbackup/borg.git
fixup: only works for local repos
This commit is contained in:
parent
b9dce0ebdc
commit
573733bc81
|
@ -1469,6 +1469,8 @@ class Archiver:
|
|||
repository.put(Manifest.MANIFEST_ID, data)
|
||||
# usually, a 0 byte (open for writing) segment file would be visible in the filesystem here.
|
||||
# we write and close this file, to rather have a valid segment file on disk, before invoking the subprocess.
|
||||
# we can only do this for local repositories (with .io), though:
|
||||
if hasattr(repository, 'io'):
|
||||
repository.io.close_segment()
|
||||
try:
|
||||
# we exit with the return code we get from the subprocess
|
||||
|
|
Loading…
Reference in New Issue