diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/loader.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/luarocks/loader.lua b/src/luarocks/loader.lua index 0cc76027..969f4844 100644 --- a/src/luarocks/loader.lua +++ b/src/luarocks/loader.lua | |||
@@ -149,12 +149,18 @@ local function select_module(module, filter_file_name) | |||
149 | for _, tree in ipairs(tree_manifests) do | 149 | for _, tree in ipairs(tree_manifests) do |
150 | local entries = tree.manifest.modules[module] | 150 | local entries = tree.manifest.modules[module] |
151 | if entries then | 151 | if entries then |
152 | add_providers(providers, entries, tree, module, filter_file_name) | 152 | local n, v, f = add_providers(providers, entries, tree, module, filter_file_name) |
153 | if n then | ||
154 | return n, v, f | ||
155 | end | ||
153 | else | 156 | else |
154 | initmodule = initmodule or module .. ".init" | 157 | initmodule = initmodule or module .. ".init" |
155 | entries = tree.manifest.modules[initmodule] | 158 | entries = tree.manifest.modules[initmodule] |
156 | if entries then | 159 | if entries then |
157 | add_providers(providers, entries, tree, initmodule, filter_file_name) | 160 | local n, v, f = add_providers(providers, entries, tree, initmodule, filter_file_name) |
161 | if n then | ||
162 | return n, v, f | ||
163 | end | ||
158 | end | 164 | end |
159 | end | 165 | end |
160 | end | 166 | end |