summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2019-03-11 01:55:52 +0000
committerNorbert Preining <preining@logic.at>2019-03-11 01:55:52 +0000
commit868a1e33bab8b633f5873f43a97253022662d23e (patch)
tree3f1cb8e01e40050eec81be60076b3b8214d53f91 /Master
parent0f499ce34ed17b9f2259823052609d543c4e9ed1 (diff)
cleanup temp files on re-exec
git-svn-id: svn://tug.org/texlive/trunk@50333 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index e6844f3a0f4..07f950cdfb6 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -3518,6 +3518,8 @@ sub action_update {
if (!win32() && $restart_tlmgr && !$opts{"dry-run"} && !$opts{"list"}) {
info ("Restarting tlmgr to complete update ...\n");
debug("restarting tlmgr @::SAVEDARGV\n");
+ # cleanup temp files before re-exec-ing tlmgr
+ File::Temp::cleanup();
exec("tlmgr", @::SAVEDARGV);
# we need warn here, otherwise perl gives warnings!
warn ("$prg: cannot restart tlmgr, please retry update\n");