mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
Don't close temp file before running borg extract
.
Fixes #1488. Closing deletes the temp file. This will be done by `BorgJob.run` after running the command. * src/vorta/borg/extract.py (BorgExtractJob.prepare): Remove call to `close` of temporary file.
This commit is contained in:
parent
648c916adb
commit
031a498ee0
1 changed files with 0 additions and 1 deletions
|
@ -48,7 +48,6 @@ def prepare(cls, profile, archive_name, model: ExtractTree, destination_folder):
|
|||
|
||||
pattern_file.write("- *\n")
|
||||
pattern_file.flush()
|
||||
pattern_file.close() # wont delete temp file
|
||||
cmd.extend(['--patterns-from', pattern_file.name])
|
||||
ret['cleanup_files'].append(pattern_file)
|
||||
|
||||
|
|
Loading…
Reference in a new issue