diff options
author | Kim Alvefur <zash@zash.se> | 2015-02-21 10:38:44 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-02-21 10:38:44 +0100 |
commit | 280f602e1a22ae54b8f06fad2ffd3ff630745317 (patch) | |
tree | ef543c78d88de7538792d8390b90064726c834c0 /util/dependencies.lua | |
parent | 3015aac8bcb38ed2d00b8f5205bd54d82b96e71a (diff) | |
download | prosody-280f602e1a22ae54b8f06fad2ffd3ff630745317.tar.gz prosody-280f602e1a22ae54b8f06fad2ffd3ff630745317.zip |
util.dependencies: Only abort on Lua versions before 5.1, log a warning about 5.2 and above for now
Diffstat (limited to 'util/dependencies.lua')
-rw-r--r-- | util/dependencies.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua index e0f1072d..5e3b03d8 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -47,10 +47,10 @@ package.preload["util.ztact"] = function () end; local function check_dependencies() - if _VERSION ~= "Lua 5.1" then + if _VERSION < "Lua 5.1" then print "***********************************" print("Unsupported Lua version: ".._VERSION); - print("Only Lua 5.1 is supported."); + print("At least Lua 5.1 is required."); print "***********************************" return false; end @@ -136,6 +136,9 @@ local function check_dependencies() end local function log_warnings() + if _VERSION > "Lua 5.1" then + log("warn", "Support for %s is experimental, please report any issues", _VERSION); + end local ssl = softreq"ssl"; if ssl then local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); |