aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-05-03 16:11:46 -0300
committerHisham <hisham@gobolinux.org>2016-05-03 16:11:46 -0300
commit93f594a394a5ff77c123477b98237103df38d242 (patch)
tree7ee9b7a8bae50c7c699520af77a70bb4af2315fd
parent0d11ac64fc6b513cf7940699ff57303366bccbe2 (diff)
downloadluarocks-93f594a394a5ff77c123477b98237103df38d242.tar.gz
luarocks-93f594a394a5ff77c123477b98237103df38d242.tar.bz2
luarocks-93f594a394a5ff77c123477b98237103df38d242.zip
Feature-test rather than version-test
-rw-r--r--src/luarocks/cfg.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index c9fc00eb..591a456a 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -604,13 +604,11 @@ defaults.variables.LUA = site_config.LUA_DIR_SET and (defaults.variables.LUA_BIN
604-- Add built-in modules to rocks_provided 604-- Add built-in modules to rocks_provided
605defaults.rocks_provided["lua"] = cfg.lua_version.."-1" 605defaults.rocks_provided["lua"] = cfg.lua_version.."-1"
606 606
607if cfg.lua_version >= "5.2" then 607if bit32 then -- Lua 5.2+
608 -- Lua 5.2+
609 defaults.rocks_provided["bit32"] = cfg.lua_version.."-1" 608 defaults.rocks_provided["bit32"] = cfg.lua_version.."-1"
610end 609end
611 610
612if cfg.lua_version >= "5.3" then 611if utf8 then -- Lua 5.3+
613 -- Lua 5.3+
614 defaults.rocks_provided["utf8"] = cfg.lua_version.."-1" 612 defaults.rocks_provided["utf8"] = cfg.lua_version.."-1"
615end 613end
616 614