diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-04 17:25:39 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-06 12:38:45 -0300 |
commit | 6e7e522ffe3204243306cba8d128a7ec21f591f9 (patch) | |
tree | 7d6b03d99928ba338e5212dd6b0e077297ea72b0 /src | |
parent | 526fd923282d03c89c2511f858eb1d66bdba782b (diff) | |
download | luarocks-6e7e522ffe3204243306cba8d128a7ec21f591f9.tar.gz luarocks-6e7e522ffe3204243306cba8d128a7ec21f591f9.tar.bz2 luarocks-6e7e522ffe3204243306cba8d128a7ec21f591f9.zip |
build: make "builtin" the default build.type
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/build.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index fe004fb5..25e73b0d 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua | |||
@@ -170,8 +170,14 @@ function build.build_rockspec(rockspec_file, need_to_fetch, minimal_mode, deps_m | |||
170 | return nil, err, errcode | 170 | return nil, err, errcode |
171 | elseif not rockspec.build then | 171 | elseif not rockspec.build then |
172 | return nil, "Rockspec error: build table not specified" | 172 | return nil, "Rockspec error: build table not specified" |
173 | elseif not rockspec.build.type then | 173 | end |
174 | return nil, "Rockspec error: build type not specified" | 174 | |
175 | if not rockspec.build.type then | ||
176 | if rockspec:format_is_at_least("3.0") then | ||
177 | rockspec.build.type = "builtin" | ||
178 | else | ||
179 | return nil, "Rockspec error: build type not specified" | ||
180 | end | ||
175 | end | 181 | end |
176 | 182 | ||
177 | if not build_only_deps then | 183 | if not build_only_deps then |