texlive[50333] Master/texmf-dist/scripts/texlive/tlmgr.pl: cleanup

commits+preining at tug.org commits+preining at tug.org
Mon Mar 11 02:55:52 CET 2019


Revision: 50333
          http://tug.org/svn/texlive?view=revision&revision=50333
Author:   preining
Date:     2019-03-11 02:55:52 +0100 (Mon, 11 Mar 2019)
Log Message:
-----------
cleanup temp files on re-exec

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl

Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2019-03-11 01:24:44 UTC (rev 50332)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2019-03-11 01:55:52 UTC (rev 50333)
@@ -3518,6 +3518,8 @@
   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");



More information about the tex-live-commits mailing list