1
0
Fork 0
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:
real-yfprojects 2022-11-10 20:19:58 +01:00
parent 648c916adb
commit 031a498ee0
No known key found for this signature in database
GPG key ID: 00F630DFDEE25747

View file

@ -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)