diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2010-05-28 09:19:48 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2010-05-28 09:19:48 +0000 |
commit | 1ce8e00ad51cfbb3a0b23fc2d9d50f130390986b (patch) | |
tree | 500398a4b49e4f441fa0025e7c4701d26618dd5b /Master/texmf-dist/scripts | |
parent | 64cd59c228451a3df60e9078f382fd4e3e14ce35 (diff) |
hotfix for broken 'luatools --engine=x file.tex'
git-svn-id: svn://tug.org/texlive/trunk@18547 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/context/lua/luatools.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/context/lua/luatools.lua b/Master/texmf-dist/scripts/context/lua/luatools.lua index 1d87322c108..c75b1c4e86e 100755 --- a/Master/texmf-dist/scripts/context/lua/luatools.lua +++ b/Master/texmf-dist/scripts/context/lua/luatools.lua @@ -6078,8 +6078,11 @@ function resolvers.expand_variables() local expansions, environment, variables = { }, instance.environment, instance.variables local env = resolvers.env instance.expansions = expansions - if instance.engine ~= "" then environment['engine'] = instance.engine end - if instance.progname ~= "" then environment['progname'] = instance.progname end + local engine, progname = instance.engine, instance.progname + if type(engine) ~= "string" then instance.engine, engine = "", "" end + if type(progname) ~= "string" then instance.progname, progname = "", "" end + if engine ~= "" then environment['engine'] = engine end + if progname ~= "" then environment['progname'] = progname end for k,v in next, environment do local a, b = match(k,"^(%a+)%_(.*)%s*$") if a and b then |