summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLUtils.pm
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2021-04-22 00:55:07 +0000
committerNorbert Preining <preining@logic.at>2021-04-22 00:55:07 +0000
commit3d6fbb767ecd4e1b0e8359a533e4d9bad9fbe1a6 (patch)
treefa6d652124252eeceb224977b89713d96b5a0f66 /Master/tlpkg/TeXLive/TLUtils.pm
parent40b96cf0d69fc606de3675710890c51f1f869698 (diff)
Revert accidently committed changes
git-svn-id: svn://tug.org/texlive/trunk@58961 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLUtils.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLUtils.pm19
1 files changed, 0 insertions, 19 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm
index 4769fb35256..786c35813cc 100644
--- a/Master/tlpkg/TeXLive/TLUtils.pm
+++ b/Master/tlpkg/TeXLive/TLUtils.pm
@@ -4582,25 +4582,6 @@ sub setup_sys_user_mode {
} elsif ($optsref->{'user'}) {
$texmfconfig = $TEXMFCONFIG;
$texmfvar = $TEXMFVAR;
- # mktexfmt is often run accidentally by a user with missing formats
- # and the resulting format dumps are put into TEXMFVAR, which is
- # one of the most common source of problems.
- # Only for mktexfmt (but not for fmtutil, which would need to be called
- # explicitely with fmtutil -user) we check whether TEXMFSYSVAR is writable
- # and if yes, create formats there.
- if ($prg eq "mktexfmt") {
- my $switchit = 0;
- if (-d "$TEXMFSYSVAR/web2c") {
- $switchit = 1 if (-w "$TEXMFSYSVAR/web2c");
- } elsif (-d $TEXMFSYSVAR && -w $TEXMFSYSVAR) {
- $switchit = 1;
- }
- if ($switchit) {
- # inform about switch, but not for mktexfmt which expects output to be only the format
- $prg eq "mktexfmt" || info("$prg: using TEXMFSYSVAR instead of TEXMFVAR since it is writable!\n");
- $texmfvar = $TEXMFSYSVAR;
- }
- }
} else {
print STDERR "" .
"$prg [ERROR]: Either -sys or -user mode is required.\n" .