aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks.lua')
-rw-r--r--src/luarocks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks.lua b/src/luarocks.lua
index aef93363..8530fd90 100644
--- a/src/luarocks.lua
+++ b/src/luarocks.lua
@@ -182,7 +182,7 @@ local function pick_module(module, constraints)
182 for _, tree in pairs(rocks_trees) do 182 for _, tree in pairs(rocks_trees) do
183 local entries = tree.manifest.modules[module] 183 local entries = tree.manifest.modules[module]
184 if entries then 184 if entries then
185 for _, entry in pairs(entries) do 185 for entry, _ in pairs(entries) do
186 local name, version = entry:match("^([^/]*)/(.*)$") 186 local name, version = entry:match("^([^/]*)/(.*)$")
187 if context[name] == version then 187 if context[name] == version then
188 return name, version, tree 188 return name, version, tree