diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-01 21:29:23 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-01 22:54:08 -0300 |
commit | 4ba08b6f252fd90014c4f43b7c50aeb24d1f1de7 (patch) | |
tree | f12bc3f63bd658d5665fb9f8dbf9ed68ad826d92 /src | |
parent | 5bc241ab6003577bb69891edfa1734997f6dc443 (diff) | |
download | luarocks-4ba08b6f252fd90014c4f43b7c50aeb24d1f1de7.tar.gz luarocks-4ba08b6f252fd90014c4f43b7c50aeb24d1f1de7.tar.bz2 luarocks-4ba08b6f252fd90014c4f43b7c50aeb24d1f1de7.zip |
Do we want LuaRocks itself to use whatever tree is in use?
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/path.lua | 7 |
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 | ||
220 | end | 227 | end |
221 | 228 | ||
222 | function path.rocks_tree_to_string(tree) | 229 | function path.rocks_tree_to_string(tree) |