Skip to content

Commit

Permalink
#20: qmprestore does not remove temporary files
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Feb 10, 2025
1 parent dcc3af6 commit 24cd3a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libqmpbackup/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,12 @@ def merge(argv):
log.info(commit_cmd)
subprocess.check_output(commit_cmd, shell=True)
if image != argv.targetfile:
fname = os.path.join(targetdir, os.path.basename(image))
log.info(
"Removing temporary file after merge: [%s]",
os.path.join(targetdir, os.path.basename(image)),
fname,
)
os.unlink(fname)
except subprocess.CalledProcessError as errmsg:
log.error("Rebase or commit command failed: [%s]", errmsg)
return False
Expand Down

0 comments on commit 24cd3a8

Please sign in to comment.