From 2a2fbc131c15823a6094173b0ae4b08d06500381 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 2 Jun 2010 22:28:17 +0000 Subject: mtxrun/luatools automatically and silently create cache dir git-svn-id: svn://tug.org/texlive/trunk@18700 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/texlive/context/luatools | 2 +- Build/source/texk/texlive/context/mtxrun | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/texlive/context/luatools b/Build/source/texk/texlive/context/luatools index 51c8751abf4..581ba70c86a 100755 --- a/Build/source/texk/texlive/context/luatools +++ b/Build/source/texk/texlive/context/luatools @@ -7117,7 +7117,7 @@ caches.more = caches.more or "context" caches.direct = false -- true is faster but may need huge amounts of memory caches.tree = false caches.paths = caches.paths or nil -caches.force = false +caches.force = true -- changed for TEXLIVE by TH caches.defaults = { "TEXMFCACHE", "TMPDIR", "TEMPDIR", "TMP", "TEMP", "HOME", "HOMEPATH" } function caches.temp() diff --git a/Build/source/texk/texlive/context/mtxrun b/Build/source/texk/texlive/context/mtxrun index 55a597236b9..d6b2d13a71a 100755 --- a/Build/source/texk/texlive/context/mtxrun +++ b/Build/source/texk/texlive/context/mtxrun @@ -9313,8 +9313,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 @@ -10311,7 +10314,7 @@ caches.more = caches.more or "context" caches.direct = false -- true is faster but may need huge amounts of memory caches.tree = false caches.paths = caches.paths or nil -caches.force = false +caches.force = true -- changed for TEXLIVE by TH caches.defaults = { "TEXMFCACHE", "TMPDIR", "TEMPDIR", "TMP", "TEMP", "HOME", "HOMEPATH" } function caches.temp() -- cgit v1.2.3