summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/file-mod.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/file-mod.lmt')
-rw-r--r--tex/context/base/mkxl/file-mod.lmt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/file-mod.lmt b/tex/context/base/mkxl/file-mod.lmt
index 6af5d8816..d10abf533 100644
--- a/tex/context/base/mkxl/file-mod.lmt
+++ b/tex/context/base/mkxl/file-mod.lmt
@@ -177,7 +177,11 @@ function environment.usemodules(prefix,askedname,truename)
for i=1,#prefixes do
-- todo: reconstruct name i.e. basename
local thename = prefixes[i] .. "-" .. truename
- if usemodule(thename) then
+ if thename == tex.jobname then
+ -- in case we process a module
+ status = 1
+ break
+ elseif usemodule(thename) then
status = 1
break
end