summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");