summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/data-bin.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-08-06 02:07:31 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-08-06 02:07:31 +0200
commitffb7a5f21df9b0802cb00f9ef3578209a372ae2f (patch)
tree8ac376cfc657222b5be6d498a2f4395eda0b54d6 /tex/context/base/mkiv/data-bin.lua
parent898d8e12e219efa15e367285cee56cab77f84339 (diff)
downloadcontext-ffb7a5f21df9b0802cb00f9ef3578209a372ae2f.tar.gz
2021-08-06 01:21:00
Diffstat (limited to 'tex/context/base/mkiv/data-bin.lua')
-rw-r--r--tex/context/base/mkiv/data-bin.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/data-bin.lua b/tex/context/base/mkiv/data-bin.lua
index 2bac901ea..f455f7d9a 100644
--- a/tex/context/base/mkiv/data-bin.lua
+++ b/tex/context/base/mkiv/data-bin.lua
@@ -8,7 +8,8 @@ if not modules then modules = { } end modules ['data-bin'] = {
local resolvers = resolvers
local methodhandler = resolvers.methodhandler
-local notfound = resolvers.loaders.notfound
+
+local notfound = resolvers.loaders.notfound
function resolvers.findbinfile(filename,filetype)
return methodhandler('finders',filename,filetype)
@@ -28,3 +29,14 @@ function resolvers.loadbinfile(filename,filetype)
return notfound()
end
end
+
+local notfound = resolvers.cleaners.notfound
+
+function resolvers.cleanupbinfile(filename)
+ local fname = methodhandler('finders',filename)
+ if fname and fname ~= "" then
+ return methodhandler('cleaners',fname)
+ else
+ return notfound()
+ end
+end