From 598292ee8bc732527a09fdbaee9ede8599179b4d Mon Sep 17 00:00:00 2001 From: hisham Date: Tue, 29 Dec 2009 19:09:22 +0000 Subject: Fix installation of modules installed as init.lua files git-svn-id: http://luarocks.org/svn/luarocks/trunk@126 9ca3f7c1-7366-0410-b1a3-b5c78f85698c --- src/luarocks/build/builtin.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) if type(info) == "string" then local ext = info:match(".([^.]+)$") if ext == "lua" then + if info:match("init.lua$") then + moddir = path.module_to_path(name..".init") + end local dest = dir.path(luadir, moddir) built_modules[info] = dest else -- cgit v1.2.3-55-g6feb