summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2015-06-15 00:00:42 +0000
committerNorbert Preining <preining@logic.at>2015-06-15 00:00:42 +0000
commite16b85e16691dd5fda613ad0daca7eaa36c6440a (patch)
treec65530c0641e9f16a9f046cde1f0d6a4de8f3b22 /Master
parentd4da105331369e5aae0644013876475bfebdaf9a (diff)
fmtutil: make disablefmt work
git-svn-id: svn://tug.org/texlive/trunk@37541 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/fmtutil.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl
index 23b9998858c..6f817bec2b5 100755
--- a/Master/texmf-dist/scripts/texlive/fmtutil.pl
+++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl
@@ -232,7 +232,7 @@ sub main {
exit(1);
} elsif ($opts{'disablefmt'}) {
return callback_enable_disable_format($changes_config_file,
- $opts{'enablefmt'}, 'disabled');
+ $opts{'disablefmt'}, 'disabled');
} elsif ($opts{'enablefmt'}) {
return callback_enable_disable_format($changes_config_file,
$opts{'enablefmt'}, 'enabled');
@@ -665,10 +665,10 @@ sub enable_disable_format_engine {
my $origin = $alldata->{'merged'}{$fmt}{$eng}{'origin'};
if ($origin ne $tc) {
$alldata->{'fmtutil'}{$tc}{'formats'}{$fmt}{$eng} =
- {%{$alldata->{'fmtutil'}{$origin}{'formats'}{$fmt}{$eng}}}
+ {%{$alldata->{'fmtutil'}{$origin}{'formats'}{$fmt}{$eng}}};
+ $alldata->{'fmtutil'}{$tc}{'formats'}{$fmt}{$eng}{'line'} = -1;
}
$alldata->{'fmtutil'}{$tc}{'formats'}{$fmt}{$eng}{'status'} = $mode;
- $alldata->{'fmtutil'}{$tc}{'formats'}{$fmt}{$eng}{'line'} = -1;
$alldata->{'fmtutil'}{$tc}{'changed'} = 1;
$alldata->{'merged'}{$fmt}{$eng}{'status'} = $mode;
$alldata->{'merged'}{$fmt}{$eng}{'origin'} = $tc;