aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/core/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/core/util.lua b/src/luarocks/core/util.lua
index a025da7d..1a963a65 100644
--- a/src/luarocks/core/util.lua
+++ b/src/luarocks/core/util.lua
@@ -150,7 +150,7 @@ function util.cleanup_path(list, sep, lua_version)
150 for _, part in ipairs(parts) do 150 for _, part in ipairs(parts) do
151 part = part:gsub("//", "/") 151 part = part:gsub("//", "/")
152 if lua_version then 152 if lua_version then
153 part = part:gsub("/lua/[%d.]+/", "/lua/"..lua_version) 153 part = part:gsub("/lua/[%d.]+/", "/lua/"..lua_version.."/")
154 end 154 end
155 if not entries[part] then 155 if not entries[part] then
156 table.insert(final, part) 156 table.insert(final, part)