summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/luat-run.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-03-26 16:55:00 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-03-26 16:55:00 +0200
commit30ea6ac75b1cf62ea8e17228c07d54824285acfa (patch)
tree5a634b0c9ce533cd0da8652cf4db39a696310a3d /tex/context/base/mkiv/luat-run.lua
parentdc54cea46e02502b4474a0fa132466974a9cc19c (diff)
downloadcontext-30ea6ac75b1cf62ea8e17228c07d54824285acfa.tar.gz
2017-03-26 16:22:00
Diffstat (limited to 'tex/context/base/mkiv/luat-run.lua')
-rw-r--r--tex/context/base/mkiv/luat-run.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/luat-run.lua b/tex/context/base/mkiv/luat-run.lua
index 66925f19f..d0f894292 100644
--- a/tex/context/base/mkiv/luat-run.lua
+++ b/tex/context/base/mkiv/luat-run.lua
@@ -118,7 +118,11 @@ function luatex.registertempfile(name,extrasuffix,keep) -- namespace might chang
name = name .. ".mkiv-tmp" -- maybe just .tmp
end
if trace_temp_files and not tempfiles[name] then
- report_tempfiles("registering temporary file %a",name)
+ if keep then
+ report_tempfiles("%s temporary file %a","registering",name)
+ else
+ report_tempfiles("%s temporary file %a","unregistering",name)
+ end
end
tempfiles[name] = keep or false
return name
@@ -128,7 +132,7 @@ function luatex.cleanuptempfiles()
for name, keep in next, tempfiles do
if not keep then
if trace_temp_files then
- report_tempfiles("removing temporary file %a",name)
+ report_tempfiles("%s temporary file %a","removing",name)
end
os.remove(name)
end