diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-10-16 22:30:52 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-10-16 22:30:52 -0300 |
commit | 0353599bb573254b4a6125a61ff5353b93d78ba3 (patch) | |
tree | 13df7a2e76fc78caa29f9edf3a1c5acb6928f630 /src | |
parent | c3cc9cd9cfd221ff32347f8ecdf790f4ffd7b42a (diff) | |
download | luarocks-0353599bb573254b4a6125a61ff5353b93d78ba3.tar.gz luarocks-0353599bb573254b4a6125a61ff5353b93d78ba3.tar.bz2 luarocks-0353599bb573254b4a6125a61ff5353b93d78ba3.zip |
Remove dead code: queries in this function never happen with exact_name == false.
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 |