diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/build/builtin.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/build/builtin.lua b/src/luarocks/build/builtin.lua index 0407ee81..30159352 100644 --- a/src/luarocks/build/builtin.lua +++ b/src/luarocks/build/builtin.lua | |||
| @@ -104,6 +104,9 @@ function run(rockspec) | |||
| 104 | if type(info) == "string" then | 104 | if type(info) == "string" then |
| 105 | local ext = info:match(".([^.]+)$") | 105 | local ext = info:match(".([^.]+)$") |
| 106 | if ext == "lua" then | 106 | if ext == "lua" then |
| 107 | if info:match("init.lua$") then | ||
| 108 | moddir = path.module_to_path(name..".init") | ||
| 109 | end | ||
| 107 | local dest = dir.path(luadir, moddir) | 110 | local dest = dir.path(luadir, moddir) |
| 108 | built_modules[info] = dest | 111 | built_modules[info] = dest |
| 109 | else | 112 | else |
