aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-08-24 13:17:15 -0300
committerHisham Muhammad <hisham@gobolinux.org>2020-08-26 14:27:27 -0300
commit7b712fc9d2188e5f3743720239a465f8089bdebf (patch)
tree2cb497f0a9c4a3c5084ece55f35016cc2929dd98
parent90018b4502b0f55742e73b24ee9c66b79f6bf16f (diff)
downloadluarocks-7b712fc9d2188e5f3743720239a465f8089bdebf.tar.gz
luarocks-7b712fc9d2188e5f3743720239a465f8089bdebf.tar.bz2
luarocks-7b712fc9d2188e5f3743720239a465f8089bdebf.zip
Do not assume Lua 5.3 includes bit32
We can't autodetect this either because the interpreter running LuaRocks may not be the same one running Lua. Fixes #1204.
-rw-r--r--src/luarocks/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua
index af63b79d..29a8f8e4 100644
--- a/src/luarocks/util.lua
+++ b/src/luarocks/util.lua
@@ -600,7 +600,7 @@ function util.get_rocks_provided(rockspec)
600 600
601 rocks_provided["lua"] = lv.."-1" 601 rocks_provided["lua"] = lv.."-1"
602 602
603 if lv == "5.2" or lv == "5.3" then 603 if lv == "5.2" then
604 rocks_provided["bit32"] = lv.."-1" 604 rocks_provided["bit32"] = lv.."-1"
605 end 605 end
606 606