aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-11-02 06:54:57 -0200
committerHisham Muhammad <hisham@gobolinux.org>2012-11-02 06:54:57 -0200
commit455fcc2385c4e6be8e1f756d8a6997c4b67650f6 (patch)
tree535265d977d8d0e3c3d0978abd8a325020e70fcf
parenta94d8e04dfde6b35bb1ac6bdc1d4081b1d48cbf3 (diff)
downloadluarocks-455fcc2385c4e6be8e1f756d8a6997c4b67650f6.tar.gz
luarocks-455fcc2385c4e6be8e1f756d8a6997c4b67650f6.tar.bz2
luarocks-455fcc2385c4e6be8e1f756d8a6997c4b67650f6.zip
Honor --tree in list command.
-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"])