aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/path.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua
index 8e82beeb..c7ab9283 100644
--- a/src/luarocks/path.lua
+++ b/src/luarocks/path.lua
@@ -217,6 +217,13 @@ function path.use_tree(tree)
217 cfg.deploy_bin_dir = path.deploy_bin_dir(tree) 217 cfg.deploy_bin_dir = path.deploy_bin_dir(tree)
218 cfg.deploy_lua_dir = path.deploy_lua_dir(tree) 218 cfg.deploy_lua_dir = path.deploy_lua_dir(tree)
219 cfg.deploy_lib_dir = path.deploy_lib_dir(tree) 219 cfg.deploy_lib_dir = path.deploy_lib_dir(tree)
220
221 -- TODO Do we want LuaRocks itself to use whatever tree is in use?
222 -- package.path = dir.path(path.deploy_lua_dir(tree), "?.lua") .. ";"
223 -- .. dir.path(path.deploy_lua_dir(tree), "?/init.lua") .. ";"
224 -- .. package.path
225 -- package.cpath = dir.path(path.deploy_lib_dir(tree), "?." .. cfg.lib_extension) .. ";"
226 -- .. package.cpath
220end 227end
221 228
222function path.rocks_tree_to_string(tree) 229function path.rocks_tree_to_string(tree)