diff options
| author | Hisham <hisham@gobolinux.org> | 2016-10-20 03:04:28 -0400 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-10-20 03:04:28 -0400 |
| commit | b526f07e99af98ba42786e88c52636e52059b398 (patch) | |
| tree | 9473c75f6645b569dcc8b4924de7f9f30e7b0833 /src | |
| parent | 2ced4474d635c11e687ad5b4b5357737503c0b38 (diff) | |
| download | luarocks-b526f07e99af98ba42786e88c52636e52059b398.tar.gz luarocks-b526f07e99af98ba42786e88c52636e52059b398.tar.bz2 luarocks-b526f07e99af98ba42786e88c52636e52059b398.zip | |
Make sure brand-new rockspec table has the utility function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/write_rockspec.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/write_rockspec.lua b/src/luarocks/write_rockspec.lua index d6075dbd..be563eaa 100644 --- a/src/luarocks/write_rockspec.lua +++ b/src/luarocks/write_rockspec.lua | |||
| @@ -9,6 +9,7 @@ local path = require("luarocks.path") | |||
| 9 | local persist = require("luarocks.persist") | 9 | local persist = require("luarocks.persist") |
| 10 | local type_check = require("luarocks.type_check") | 10 | local type_check = require("luarocks.type_check") |
| 11 | local util = require("luarocks.util") | 11 | local util = require("luarocks.util") |
| 12 | local deps = require("luarocks.deps") | ||
| 12 | 13 | ||
| 13 | write_rockspec.help_summary = "Write a template for a rockspec file." | 14 | write_rockspec.help_summary = "Write a template for a rockspec file." |
| 14 | write_rockspec.help_arguments = "[--output=<file> ...] [<name>] [<version>] [<url>|<path>]" | 15 | write_rockspec.help_arguments = "[--output=<file> ...] [<name>] [<version>] [<url>|<path>]" |
| @@ -221,6 +222,7 @@ local function rockspec_cleanup(rockspec) | |||
| 221 | rockspec.source.protocol = nil | 222 | rockspec.source.protocol = nil |
| 222 | rockspec.variables = nil | 223 | rockspec.variables = nil |
| 223 | rockspec.name = nil | 224 | rockspec.name = nil |
| 225 | rockspec.format_is_at_least = nil | ||
| 224 | end | 226 | end |
| 225 | 227 | ||
| 226 | function write_rockspec.command(flags, name, version, url_or_dir) | 228 | function write_rockspec.command(flags, name, version, url_or_dir) |
| @@ -283,6 +285,7 @@ function write_rockspec.command(flags, name, version, url_or_dir) | |||
| 283 | } | 285 | } |
| 284 | path.configure_paths(rockspec) | 286 | path.configure_paths(rockspec) |
| 285 | rockspec.source.protocol = protocol | 287 | rockspec.source.protocol = protocol |
| 288 | rockspec.format_is_at_least = deps.format_is_at_least | ||
| 286 | 289 | ||
| 287 | configure_lua_version(rockspec, flags["lua-version"]) | 290 | configure_lua_version(rockspec, flags["lua-version"]) |
| 288 | 291 | ||
