diff options
author | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-06-27 21:23:28 +0000 |
---|---|---|
committer | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-06-27 21:23:28 +0000 |
commit | 6a196aca575412fcf9e1e5e69389c6e34d86cf2d (patch) | |
tree | 77a45d131259c2062c34ef86036836d7d930dcca /src | |
parent | 00b26dedf60c1c8fcb40f2257557ae42b568dbcc (diff) | |
download | luarocks-6a196aca575412fcf9e1e5e69389c6e34d86cf2d.tar.gz luarocks-6a196aca575412fcf9e1e5e69389c6e34d86cf2d.tar.bz2 luarocks-6a196aca575412fcf9e1e5e69389c6e34d86cf2d.zip |
disencourage deprecated name
git-svn-id: http://luarocks.org/svn/luarocks/trunk@31 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
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 |