From ad717ef646940a985b6cb153f08faec691c425a1 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Sat, 4 May 2013 18:02:12 +0200 Subject: Fixing small error in module date requirement --- luatexbase-modutils.dtx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/luatexbase-modutils.dtx b/luatexbase-modutils.dtx index 33fc974..9da5605 100644 --- a/luatexbase-modutils.dtx +++ b/luatexbase-modutils.dtx @@ -567,9 +567,8 @@ local function require_module(name, req_date) local info = modules[name] if not info then warn("module '%s' was not properly identified", name) - elseif req_date and info.version then - if not (info.date and date_to_int(info.date) > date_to_int(req_date)) - then + elseif req_date and info.date then + if date_to_int(info.date) < date_to_int(req_date) then warn("module '%s' required in version '%s'\n" .. "but found in version '%s'", name, req_date, info.date) end -- cgit v1.2.3