aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/list.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luarocks/list.lua b/src/luarocks/list.lua
index 9a4630ff..6081ed43 100644
--- a/src/luarocks/list.lua
+++ b/src/luarocks/list.lua
@@ -25,7 +25,11 @@ function run(...)
25 local results = {} 25 local results = {}
26 local query = search.make_query(filter and filter:lower() or "", version) 26 local query = search.make_query(filter and filter:lower() or "", version)
27 query.exact_name = false 27 query.exact_name = false
28 for _, tree in ipairs(cfg.rocks_trees) do 28 local trees = cfg.rocks_trees
29 if flags["tree"] then
30 trees = { flags["tree"] }
31 end
32 for _, tree in ipairs(trees) do
29 search.manifest_search(results, path.rocks_dir(tree), query) 33 search.manifest_search(results, path.rocks_dir(tree), query)
30 end 34 end
31 util.title("Installed rocks:", flags["porcelain"]) 35 util.title("Installed rocks:", flags["porcelain"])