diff options
| author | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-12-29 19:09:22 +0000 |
|---|---|---|
| committer | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-12-29 19:09:22 +0000 |
| commit | 598292ee8bc732527a09fdbaee9ede8599179b4d (patch) | |
| tree | 78b46ab1e13fbcd7cd51ccbf65610de7024df346 | |
| parent | c2609bcb1cb434e5e715e5598b777c6a569deb83 (diff) | |
| download | luarocks-598292ee8bc732527a09fdbaee9ede8599179b4d.tar.gz luarocks-598292ee8bc732527a09fdbaee9ede8599179b4d.tar.bz2 luarocks-598292ee8bc732527a09fdbaee9ede8599179b4d.zip | |
Fix installation of modules installed as init.lua files
git-svn-id: http://luarocks.org/svn/luarocks/trunk@126 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
| -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 |
