mirror of https://github.com/borgbase/vorta
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
|
@ -48,7 +48,6 @@ class BorgExtractJob(BorgJob):
|
|||
|
||||
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 New Issue