diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 19:51:28 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-29 19:51:28 -0300 |
commit | be14c9782da0c7f125322aefd5647ffe26263653 (patch) | |
tree | b14e096fdc3d3713665ef3417acd3d4e0ec2bdaf /src | |
parent | 74899796dd88f0b4ae903788453559cdd7a74f2a (diff) | |
download | luarocks-be14c9782da0c7f125322aefd5647ffe26263653.tar.gz luarocks-be14c9782da0c7f125322aefd5647ffe26263653.tar.bz2 luarocks-be14c9782da0c7f125322aefd5647ffe26263653.zip |
Fix: don't eat up one slash when fixing the path
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/core/util.lua | 2 |
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) |