diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/search.lua | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/luarocks/search.lua b/src/luarocks/search.lua index ec0fa69c..96c6b876 100644 --- a/src/luarocks/search.lua +++ b/src/luarocks/search.lua | |||
@@ -349,13 +349,6 @@ function act_on_src_or_rockspec(action, name, version, ...) | |||
349 | local results, err = find_suitable_rock(query) | 349 | local results, err = find_suitable_rock(query) |
350 | if type(results) == "string" then | 350 | if type(results) == "string" then |
351 | return action(results, ...) | 351 | return action(results, ...) |
352 | elseif type(results) == "table" and next(results) then | ||
353 | util.printout("Multiple search results were returned.") | ||
354 | util.printout() | ||
355 | util.printout("Search results:") | ||
356 | util.printout("---------------") | ||
357 | print_results(results) | ||
358 | return nil, "Please narrow your query." | ||
359 | else | 352 | else |
360 | return nil, "Could not find a result named "..name..(version and " "..version or "").."." | 353 | return nil, "Could not find a result named "..name..(version and " "..version or "").."." |
361 | end | 354 | end |