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.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua
index fccabc99..f62ff230 100644
--- a/src/luarocks/path.lua
+++ b/src/luarocks/path.lua
@@ -17,22 +17,27 @@ function rockspec_name_from_rock(rock_name)
17end 17end
18 18
19function rocks_dir(repo) 19function rocks_dir(repo)
20 assert(type(repo) == "string")
20 return dir.path(repo, "lib", "luarocks", "rocks") 21 return dir.path(repo, "lib", "luarocks", "rocks")
21end 22end
22 23
23function scripts_dir(repo) 24function deploy_bin_dir(repo)
25 assert(type(repo) == "string")
24 return dir.path(repo, "bin") 26 return dir.path(repo, "bin")
25end 27end
26 28
27function lua_modules_dir(repo) 29function deploy_lua_dir(repo)
30 assert(type(repo) == "string")
28 return dir.path(repo, "share", "lua", "5.1") 31 return dir.path(repo, "share", "lua", "5.1")
29end 32end
30 33
31function bin_modules_dir(repo) 34function deploy_lib_dir(repo)
35 assert(type(repo) == "string")
32 return dir.path(repo, "lib", "lua", "5.1") 36 return dir.path(repo, "lib", "lua", "5.1")
33end 37end
34 38
35function manifest_file(repo) 39function manifest_file(repo)
40 assert(type(repo) == "string")
36 return dir.path(repo, "lib", "luarocks", "rocks", "manifest") 41 return dir.path(repo, "lib", "luarocks", "rocks", "manifest")
37end 42end
38 43
@@ -242,4 +247,3 @@ function configure_paths(rockspec)
242 vars.DOCDIR = doc_dir(name, version) 247 vars.DOCDIR = doc_dir(name, version)
243 rockspec.variables = vars 248 rockspec.variables = vars
244end 249end
245