diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexbase/modutils.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luatexbase/modutils.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexbase/modutils.lua b/Master/texmf-dist/tex/luatex/luatexbase/modutils.lua index 40063557c8b..d3a4d541e1e 100644 --- a/Master/texmf-dist/tex/luatex/luatexbase/modutils.lua +++ b/Master/texmf-dist/tex/luatex/luatexbase/modutils.lua @@ -6,15 +6,12 @@ -- -- luatexbase-modutils.dtx (with options: `luamodule') -- --- Written in 2009, 2010 by Manuel Pegourie-Gonnard and Elie Roux. --- --- This work is under the CC0 license. --- See source file 'luatexbase-modutils.dtx' for details. +-- See the aforementioned source file(s) for copyright and licensing information. -- module("luatexbase", package.seeall) local modules = modules or {} local function date_to_int(date) - numbers = string.gsub(date, "(%d+)/(%d+)/(%d+)", "%1%2%3") + local numbers = string.gsub(date, "(%d+)/(%d+)/(%d+)", "%1%2%3") return tonumber(numbers) end local function msg_format(msg_type, mod_name, ...) @@ -53,7 +50,7 @@ function require_module(name, req_date) local info = modules[name] if not info then warn("module '%s' was not properly identified", name) - elseif version then + elseif req_date and info.version then if not (info.date and date_to_int(info.date) > date_to_int(req_date)) then warn("module '%s' required in version '%s'\n" |