From 1ce8e00ad51cfbb3a0b23fc2d9d50f130390986b Mon Sep 17 00:00:00 2001 From: Mojca Miklavec Date: Fri, 28 May 2010 09:19:48 +0000 Subject: hotfix for broken 'luatools --engine=x file.tex' git-svn-id: svn://tug.org/texlive/trunk@18547 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/context/lua/luatools.lua | 7 +++++-- 1 file 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 -- cgit v1.2.3