aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-10-20 03:04:28 -0400
committerHisham <hisham@gobolinux.org>2016-10-20 03:04:28 -0400
commitb526f07e99af98ba42786e88c52636e52059b398 (patch)
tree9473c75f6645b569dcc8b4924de7f9f30e7b0833 /src
parent2ced4474d635c11e687ad5b4b5357737503c0b38 (diff)
downloadluarocks-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.lua3
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")
9local persist = require("luarocks.persist") 9local persist = require("luarocks.persist")
10local type_check = require("luarocks.type_check") 10local type_check = require("luarocks.type_check")
11local util = require("luarocks.util") 11local util = require("luarocks.util")
12local deps = require("luarocks.deps")
12 13
13write_rockspec.help_summary = "Write a template for a rockspec file." 14write_rockspec.help_summary = "Write a template for a rockspec file."
14write_rockspec.help_arguments = "[--output=<file> ...] [<name>] [<version>] [<url>|<path>]" 15write_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
224end 226end
225 227
226function write_rockspec.command(flags, name, version, url_or_dir) 228function 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