From 741b67beb9b224a409e8b56df16756bea9cb8ecd Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 24 May 2018 17:20:19 +0200 Subject: Whitelist Lua 5.4 --- src/luarocks/core/cfg.lua | 2 +- src/luarocks/util.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index f036aa44..834dba79 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua @@ -15,7 +15,7 @@ local rawset, next, table, pairs, require, io, os, setmetatable, pcall, ipairs, local cfg = {} -cfg.lua_version = _VERSION:match(" (5%.[123])$") or "5.1" +cfg.lua_version = _VERSION:match(" (5%.[1234])$") or "5.1" local version_suffix = cfg.lua_version:gsub("%.", "_") -- Load site-local global configurations diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 7fdefce0..ff36aa50 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua @@ -310,7 +310,7 @@ function util.variable_substitutions(tbl, vars) end function util.lua_versions() - local versions = { "5.1", "5.2", "5.3" } + local versions = { "5.1", "5.2", "5.3", "5.4" } local i = 0 return function() i = i + 1 -- cgit v1.2.3-55-g6feb