diff options
author | Kim Alvefur <zash@zash.se> | 2018-05-24 17:20:19 +0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-05-25 13:18:05 -0300 |
commit | 741b67beb9b224a409e8b56df16756bea9cb8ecd (patch) | |
tree | 66d857466e3360c2b453fd72dfb05a8e4034537e | |
parent | 1b3848fa703ba0f5eea5ca3741cce26f7349aeb9 (diff) | |
download | luarocks-741b67beb9b224a409e8b56df16756bea9cb8ecd.tar.gz luarocks-741b67beb9b224a409e8b56df16756bea9cb8ecd.tar.bz2 luarocks-741b67beb9b224a409e8b56df16756bea9cb8ecd.zip |
Whitelist Lua 5.4
-rw-r--r-- | src/luarocks/core/cfg.lua | 2 | ||||
-rw-r--r-- | src/luarocks/util.lua | 2 |
2 files changed, 2 insertions, 2 deletions
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, | |||
15 | 15 | ||
16 | local cfg = {} | 16 | local cfg = {} |
17 | 17 | ||
18 | cfg.lua_version = _VERSION:match(" (5%.[123])$") or "5.1" | 18 | cfg.lua_version = _VERSION:match(" (5%.[1234])$") or "5.1" |
19 | local version_suffix = cfg.lua_version:gsub("%.", "_") | 19 | local version_suffix = cfg.lua_version:gsub("%.", "_") |
20 | 20 | ||
21 | -- Load site-local global configurations | 21 | -- 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) | |||
310 | end | 310 | end |
311 | 311 | ||
312 | function util.lua_versions() | 312 | function util.lua_versions() |
313 | local versions = { "5.1", "5.2", "5.3" } | 313 | local versions = { "5.1", "5.2", "5.3", "5.4" } |
314 | local i = 0 | 314 | local i = 0 |
315 | return function() | 315 | return function() |
316 | i = i + 1 | 316 | i = i + 1 |