diff options
-rw-r--r-- | src/luarocks/cfg.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 56396239..0ff8f537 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -465,11 +465,8 @@ end | |||
465 | 465 | ||
466 | if package.loaded.jit then | 466 | if package.loaded.jit then |
467 | -- LuaJIT | 467 | -- LuaJIT |
468 | local lj_version = package.loaded.jit.version:match("LuaJIT (%d%.%d%.%d)") | 468 | local lj_version = package.loaded.jit.version:match("LuaJIT (.*)"):gsub("%-","") |
469 | defaults.rocks_provided["luajit"] = lj_version.."-1" | 469 | --defaults.rocks_provided["luajit"] = lj_version.."-1" |
470 | defaults.rocks_provided["jit"] = lj_version.."-1" | ||
471 | defaults.rocks_provided["ffi"] = lj_version.."-1" | ||
472 | defaults.rocks_provided["bit"] = lj_version.."-1" | ||
473 | defaults.rocks_provided["luabitop"] = lj_version.."-1" | 470 | defaults.rocks_provided["luabitop"] = lj_version.."-1" |
474 | end | 471 | end |
475 | 472 | ||