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
1 changed files with 0 additions and 1 deletions

View File

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