tlmgr: temporary directories not cleaned up

Norbert Preining preining at
Mon Mar 11 02:47:00 CET 2019

Hi Johannes,

> Yes. The tidying up is left to the Temp Perl module, but it seems it
> doesn't to the cleanup on exec. I will look into it (hopefully).

I commited the following changes, it will probably included in
tomorrow's rebuild. If you want you can test it by simply adding this
one line.
--- a/Master/texmf-dist/scripts/texlive/
+++ b/Master/texmf-dist/scripts/texlive/
@@ -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");

All the best


PREINING Norbert                     
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13

More information about the tex-live mailing list