summaryrefslogtreecommitdiff
path: root/tex/context/base/grph-inc.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-01-25 15:40:14 +0200
committerMarius <mariausol@gmail.com>2012-01-25 15:40:14 +0200
commit5fce2a5267a603c8caf76880cdfb839d77ec64f0 (patch)
tree3058d1fe276f6654b3e2d40f560dfe74fb4cc09a /tex/context/base/grph-inc.lua
parentbc7656c9cd089ccd081d6af10602bfd82d1b277a (diff)
downloadcontext-5fce2a5267a603c8caf76880cdfb839d77ec64f0.tar.gz
beta 2012.01.25 14:16
Diffstat (limited to 'tex/context/base/grph-inc.lua')
-rw-r--r--tex/context/base/grph-inc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/grph-inc.lua b/tex/context/base/grph-inc.lua
index db94c62e4..4e8f89298 100644
--- a/tex/context/base/grph-inc.lua
+++ b/tex/context/base/grph-inc.lua
@@ -479,7 +479,7 @@ local function register(askedname,specification)
report_inclusion("no need to convert '%s' (%s) from '%s' to '%s'",askedname,oldname,format,newformat)
end
end
- if io.exists(newname) then
+ if io.exists(newname) and io.size(newname) > 0 then
specification.foundname = oldname
specification.fullname = newname
specification.prefix = prefix
@@ -498,7 +498,7 @@ local function register(askedname,specification)
end
end
elseif io.exists(oldname) then
- specification.fullname = newname
+ specification.fullname = oldname -- was newname
specification.converted = false
end
end