summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl8
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);