aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/path.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/path.lua')
-rw-r--r--src/luarocks/path.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua
index 219164ea..8c795e8b 100644
--- a/src/luarocks/path.lua
+++ b/src/luarocks/path.lua
@@ -297,6 +297,14 @@ function versioned_name(file, prefix, name, version)
297 return dir.path(prefix, name_version.."-"..rest) 297 return dir.path(prefix, name_version.."-"..rest)
298end 298end
299 299
300function use_tree(tree)
301 cfg.root_dir = tree
302 cfg.rocks_dir = rocks_dir(tree)
303 cfg.deploy_bin_dir = deploy_bin_dir(tree)
304 cfg.deploy_lua_dir = deploy_lua_dir(tree)
305 cfg.deploy_lib_dir = deploy_lib_dir(tree)
306end
307
300--- Driver function for "path" command. 308--- Driver function for "path" command.
301-- @return boolean This function always succeeds. 309-- @return boolean This function always succeeds.
302function run(...) 310function run(...)