diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-30 00:04:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-30 00:04:38 +0000 |
commit | 0bb281878e0a5fcee2e1f5130c9b32232446a15b (patch) | |
tree | 312e7d0390ca4afd720864f3a01bed23bde7da36 /Master/bin/win32/luatools.lua | |
parent | 95f5e2bba11d728fa3d0be906ecdc321c13beff7 (diff) |
sync luatools.lua
git-svn-id: svn://tug.org/texlive/trunk@18592 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32/luatools.lua')
-rwxr-xr-x | Master/bin/win32/luatools.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/bin/win32/luatools.lua b/Master/bin/win32/luatools.lua index 1d87322c108..c75b1c4e86e 100755 --- a/Master/bin/win32/luatools.lua +++ b/Master/bin/win32/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 |