diff options
| author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2012-06-06 10:25:31 -0700 | 
|---|---|---|
| committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2012-06-06 10:25:31 -0700 | 
| commit | 520f6b3ccb737a949ac73dcd1d8c152a044db0ba (patch) | |
| tree | 3d26f3087a844baa15820fe5ca8098063ba310a9 | |
| parent | 83cfbe1bcbd06a01c2e01ec46a07fea096244f7f (diff) | |
| parent | 15fea4d469db6ce474b84a0c35d7ce3ba3aea135 (diff) | |
| download | luatexbase-520f6b3ccb737a949ac73dcd1d8c152a044db0ba.tar.gz | |
Merge pull request #6 from phi-gamma/master
2 one-line fixes to modutils.lua
| -rw-r--r-- | luatexbase-modutils.dtx | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/luatexbase-modutils.dtx b/luatexbase-modutils.dtx index ebb89bf..2dce051 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} @@ -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"  | 
