diff options
author | Hisham <hisham@gobolinux.org> | 2016-05-03 16:11:46 -0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-05-03 16:11:46 -0300 |
commit | 93f594a394a5ff77c123477b98237103df38d242 (patch) | |
tree | 7ee9b7a8bae50c7c699520af77a70bb4af2315fd | |
parent | 0d11ac64fc6b513cf7940699ff57303366bccbe2 (diff) | |
download | luarocks-93f594a394a5ff77c123477b98237103df38d242.tar.gz luarocks-93f594a394a5ff77c123477b98237103df38d242.tar.bz2 luarocks-93f594a394a5ff77c123477b98237103df38d242.zip |
Feature-test rather than version-test
-rw-r--r-- | src/luarocks/cfg.lua | 6 |
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 |
605 | defaults.rocks_provided["lua"] = cfg.lua_version.."-1" | 605 | defaults.rocks_provided["lua"] = cfg.lua_version.."-1" |
606 | 606 | ||
607 | if cfg.lua_version >= "5.2" then | 607 | if 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" |
610 | end | 609 | end |
611 | 610 | ||
612 | if cfg.lua_version >= "5.3" then | 611 | if 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" |
615 | end | 613 | end |
616 | 614 | ||