summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 3ee79163da0..00d5821e551 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -2032,7 +2032,11 @@ sub action_generate {
$localconf ||= "$TEXMFLOCAL/tex/generic/config/language-local.dat";
debug ("$0: writing language.dat data to $dest\n");
TeXLive::TLUtils::create_language_dat($localtlpdb, $dest, $localconf);
- $dest .= ".def";
+ if ($what =~ m/^language$/i) {
+ # the next if will match but we have to undefine the $dest
+ # variable so that it is reset to the right value
+ undef $dest;
+ }
}
if ($what =~ m/^language(\.def)?$/i) {
$dest ||= "$TEXMFSYSVAR/tex/generic/config/language.def";