Re: tlmgr deleted texlive-scripts

Norbert Preining <[email protected]>
Newsgroups gmane.comp.tex.live
Message-ID <aQtPAL_-wVzdsyxA@fettsack>
Hi Pablo,

thanks for testing, that was super useful.

I think I found the bug. Very stupid.
Can you try the attached patch (on top of the previous one), please!

Best regards

Norbert

--
DI Dr Norbert Preining                        https://www.preining.info
arXiv / Cornell University   +   IFMGA Guide   +   TU Wien  +  TeX Live
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
tmpdir-win-fix.patch (text/plain, 745 B)
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index 6568c10deb5..e400f1b8aac 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -3529,8 +3529,7 @@ sub action_update {
         if (wndws()) {
           # w32 is notorious for not releasing a file immediately
           # we experienced permission denied errors
-          my $newname = $unwind_package;
-          $newname =~ s/__BACKUP/___BACKUP/;
+          my $newname = TeXLive::TLUtils::tl_tmpfile();
           copy ("-f", $unwind_package, $newname);
           # try to remove the file if has been created by us
           unlink($unwind_package) if $remove_unwind_container;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.