From 14d06b07c9b2255a52f3ba2afa65bb9ce2fa7654 Mon Sep 17 00:00:00 2001 From: Andreas Fidjeland Date: Sun, 10 Nov 2013 22:13:00 +0000 Subject: map_trees deals with both string and table trees Fixes #178 --- src/luarocks/path.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ...) use = true end for _, tree in ipairs(cfg.rocks_trees) do - if dir.normalize(tree) == dir.normalize(cfg.root_dir) then + if dir.normalize(rocks_tree_to_string(tree)) == dir.normalize(rocks_tree_to_string(cfg.root_dir)) then use = true end if use then -- cgit v1.2.3-55-g6feb