tlmgr: temporary directories not cleaned up
Johannes Hielscher
jhielscher at posteo.de
Mon Mar 11 11:51:37 CET 2019
Am Mon, 11 Mar 2019 10:47:00 +0900
schrieb Norbert Preining <preining at logic.at>:
> 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/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");
I shortly hesitated to edit tlmgr.pl, but it did the trick:
texlive.infra upgraded from 50251 (+ the File::Temp::cleanup() patch)
to 50309; some package updates thereafter, and no temporary directory
remained!
Now I have a manually modified tlmgr.pl deep in the backup archive,
until -r50333 finds its way into an texlive.infra update.
Best,
Johannes
>
> All the best
>
> Norbert
>
> --
> PREINING Norbert
> http://www.preining.info 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