summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/texlive/updmap.pl11
1 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl b/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl
index a8d39465f65..990e53f7d68 100755
--- a/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl
+++ b/Build/source/texk/texlive/linked_scripts/texlive/updmap.pl
@@ -348,6 +348,10 @@ sub main {
exit 0;
}
+ # what does this?
+ $updLSR = &mktexupd();
+ $updLSR->{mustexist}(0);
+
my $cmd;
if ($opts{'edit'}) {
if ($opts{"dry-run"}) {
@@ -376,9 +380,6 @@ sub main {
$changed ||= enable_disable_maps(@{$opts{'enable'}}, @{$opts{'disable'}});
}
- # what does this?
- $updLSR = &mktexupd();
- $updLSR->{mustexist}(0);
if ($cmd && !$opts{'force'} && !$changed) {
print "$changes_config_file unchanged. Map files not recreated.\n"
@@ -1332,6 +1333,10 @@ sub save_updmap {
}
close(FN) || warn("Cannot close file handle for $fn: $!");
delete $alldata->{'updmap'}{$fn}{'changed'};
+ #
+ # update lsR database
+ $updLSR->{add}($fn);
+ #
return 1;
}
return 0;