diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/build.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index 74e80d62..a6fe1c45 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua | |||
@@ -137,7 +137,7 @@ function build_rockspec(rockspec_file, need_to_fetch, minimal_mode) | |||
137 | end | 137 | end |
138 | fs.change_dir(rockspec.source.dir) | 138 | fs.change_dir(rockspec.source.dir) |
139 | end | 139 | end |
140 | 140 | ||
141 | local dirs = { | 141 | local dirs = { |
142 | lua = path.lua_dir(name, version), | 142 | lua = path.lua_dir(name, version), |
143 | lib = path.lib_dir(name, version), | 143 | lib = path.lib_dir(name, version), |
@@ -165,7 +165,10 @@ function build_rockspec(rockspec_file, need_to_fetch, minimal_mode) | |||
165 | if build.type ~= "none" then | 165 | if build.type ~= "none" then |
166 | 166 | ||
167 | -- Temporary compatibility | 167 | -- Temporary compatibility |
168 | if build.type == "module" then build.type = "builtin" end | 168 | if build.type == "module" then |
169 | print("Do not use 'module' as a build type. Use 'builtin' instead.") | ||
170 | build.type = "builtin" | ||
171 | end | ||
169 | 172 | ||
170 | ok, build_type = pcall(require, "luarocks.build." .. build.type) | 173 | ok, build_type = pcall(require, "luarocks.build." .. build.type) |
171 | if not ok or not type(build_type) == "table" then | 174 | if not ok or not type(build_type) == "table" then |