diff options
Diffstat (limited to 'src/luarocks/path.lua')
| -rw-r--r-- | src/luarocks/path.lua | 12 |
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) | |||
| 17 | end | 17 | end |
| 18 | 18 | ||
| 19 | function rocks_dir(repo) | 19 | function rocks_dir(repo) |
| 20 | assert(type(repo) == "string") | ||
| 20 | return dir.path(repo, "lib", "luarocks", "rocks") | 21 | return dir.path(repo, "lib", "luarocks", "rocks") |
| 21 | end | 22 | end |
| 22 | 23 | ||
| 23 | function scripts_dir(repo) | 24 | function deploy_bin_dir(repo) |
| 25 | assert(type(repo) == "string") | ||
| 24 | return dir.path(repo, "bin") | 26 | return dir.path(repo, "bin") |
| 25 | end | 27 | end |
| 26 | 28 | ||
| 27 | function lua_modules_dir(repo) | 29 | function 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") |
| 29 | end | 32 | end |
| 30 | 33 | ||
| 31 | function bin_modules_dir(repo) | 34 | function 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") |
| 33 | end | 37 | end |
| 34 | 38 | ||
| 35 | function manifest_file(repo) | 39 | function 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") |
| 37 | end | 42 | end |
| 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 |
| 244 | end | 249 | end |
| 245 | |||
