Re: tlmgr deleted texlive-scripts
Norbert Preining <[email protected]>
| Newsgroups | gmane.comp.tex.live |
|---|---|
| Message-ID | <aQyyhpMJKsYaGlJW@fettsack> |
> The temp file does not have the same extension, so unpack fails. Here is a better patch ... it should be used instead of the previous one. If you have the previous one applied, first do patch -p2 -R < backup-fixes.patch and then patch the new one patch -p2 < backup-fixes-v2.patch The -R does a reverse I hope that works. 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
backup-fixes-v2.patch
(text/plain, 828 B)
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index 6568c10deb5..bf9e14be9df 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -3529,8 +3529,8 @@ 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 ($suffix) = $unwind_package =~ /(\.tar\.[^.\s]+)$/;
+ my $newname = TeXLive::TLUtils::tl_tmpfile(SUFFIX => $suffix);
copy ("-f", $unwind_package, $newname);
# try to remove the file if has been created by us
unlink($unwind_package) if $remove_unwind_container;