aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fidjeland <andreas@deepmind.com>2013-11-10 22:13:00 +0000
committerAndreas Fidjeland <andreas@deepmind.com>2013-11-10 22:13:00 +0000
commit14d06b07c9b2255a52f3ba2afa65bb9ce2fa7654 (patch)
tree4b7cc675fc5eb1f59af25b97be94a129b83dbd85
parent143cc28429bae0ba72c08433e21aacdf3723d72f (diff)
downloadluarocks-14d06b07c9b2255a52f3ba2afa65bb9ce2fa7654.tar.gz
luarocks-14d06b07c9b2255a52f3ba2afa65bb9ce2fa7654.tar.bz2
luarocks-14d06b07c9b2255a52f3ba2afa65bb9ce2fa7654.zip
map_trees deals with both string and table trees
Fixes #178
-rw-r--r--src/luarocks/path.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua
index f5a7e9ed..f8ae15c0 100644
--- a/src/luarocks/path.lua
+++ b/src/luarocks/path.lua
@@ -336,7 +336,7 @@ function map_trees(deps_mode, fn, ...)
336 use = true 336 use = true
337 end 337 end
338 for _, tree in ipairs(cfg.rocks_trees) do 338 for _, tree in ipairs(cfg.rocks_trees) do
339 if dir.normalize(tree) == dir.normalize(cfg.root_dir) then 339 if dir.normalize(rocks_tree_to_string(tree)) == dir.normalize(rocks_tree_to_string(cfg.root_dir)) then
340 use = true 340 use = true
341 end 341 end
342 if use then 342 if use then