diff options
Diffstat (limited to 'src/luarocks/path.lua')
-rw-r--r-- | src/luarocks/path.lua | 8 |
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) |
298 | end | 298 | end |
299 | 299 | ||
300 | function 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) | ||
306 | end | ||
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. |
302 | function run(...) | 310 | function run(...) |