diff options
author | Norbert Preining <preining@logic.at> | 2017-12-07 01:54:36 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2017-12-07 01:54:36 +0000 |
commit | 83e0aae6f7104d35124d8ba9fd9082f0d5fbfb97 (patch) | |
tree | 542f9640cdca8a8319abf50617dabf70852768a6 /Master/texmf-dist | |
parent | a39608fb49817e87e62dcf5db34747d28adc7b28 (diff) |
tlmgr: only run various scripts when luatex.dll can be found for wrapper
git-svn-id: svn://tug.org/texlive/trunk@46009 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index caba3ae8858..3452469476a 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -776,10 +776,16 @@ sub do_cmd_and_check { if ($opts{"dry-run"}) { $ret = $F_OK; $out = ""; + } elsif (win32() && (! -r "$Master/bin/win32/luatex.dll")) { + # deal with the case where only scheme-infrastructure is installed + # on Windows, thus no luatex.dll is available and the wrapper cannot be started + tlwarn("Cannot run wrapper due to missing luatex.dll\n"); + $ret = $F_OK; + $out = ""; } else { ($out, $ret) = TeXLive::TLUtils::run_cmd("$cmd 2>&1"); } - if ($ret == 0) { + if ($ret == $F_OK) { info("done running $cmd.\n"); ddebug("--output of $cmd:\n$out\n--end of output of $cmd."); return ($F_OK); |