aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-04-13 19:24:13 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-04-13 19:24:13 -0300
commit6d5dfcd8fe409669eac9fb0787b306ff75115825 (patch)
tree1d84a9871610a2aa30b80a4c60f51b032df7b6a4
parent1fcf354f4736ed2349d18a5f08262810dbc8dc9c (diff)
downloadluarocks-6d5dfcd8fe409669eac9fb0787b306ff75115825.tar.gz
luarocks-6d5dfcd8fe409669eac9fb0787b306ff75115825.tar.bz2
luarocks-6d5dfcd8fe409669eac9fb0787b306ff75115825.zip
Fix crash on `luarocks --tree=/path list`.
Closes #347.
-rw-r--r--src/luarocks/type_check.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua
index bc315214..5e3bfb0d 100644
--- a/src/luarocks/type_check.lua
+++ b/src/luarocks/type_check.lua
@@ -11,6 +11,7 @@ local deps = require("luarocks.deps")
11type_check.rockspec_format = "1.1" 11type_check.rockspec_format = "1.1"
12 12
13local string_1 = { _type = "string" } 13local string_1 = { _type = "string" }
14local number_1 = { _type = "number" }
14local mandatory_string_1 = { _type = "string", _mandatory = true } 15local mandatory_string_1 = { _type = "string", _mandatory = true }
15 16
16-- Syntax for type-checking tables: 17-- Syntax for type-checking tables:
@@ -159,7 +160,7 @@ local manifest_types = {
159 op = string_1, 160 op = string_1,
160 version = { 161 version = {
161 string = string_1, 162 string = string_1,
162 _any = 0, 163 _any = number_1,
163 } 164 }
164 } 165 }
165 } 166 }