From b590b2d16628d15d7580185a20531b442e1730a8 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 6 Jun 2012 15:07:06 +0200 Subject: fixed accidental global in modutils.lua --- luatexbase-modutils.dtx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luatexbase-modutils.dtx b/luatexbase-modutils.dtx index ebb89bf..8fd87ca 100644 --- a/luatexbase-modutils.dtx +++ b/luatexbase-modutils.dtx @@ -474,7 +474,7 @@ local modules = modules or {} % % \begin{macrocode} 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 % \end{macrocode} -- cgit v1.2.3 From 15fea4d469db6ce474b84a0c35d7ce3ba3aea135 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 6 Jun 2012 16:38:24 +0200 Subject: modutils.lua: fixed reference to global "version" --- luatexbase-modutils.dtx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luatexbase-modutils.dtx b/luatexbase-modutils.dtx index 8fd87ca..2dce051 100644 --- a/luatexbase-modutils.dtx +++ b/luatexbase-modutils.dtx @@ -552,7 +552,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 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" -- cgit v1.2.3