diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-13 19:24:13 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-13 19:24:13 -0300 |
commit | 6d5dfcd8fe409669eac9fb0787b306ff75115825 (patch) | |
tree | 1d84a9871610a2aa30b80a4c60f51b032df7b6a4 | |
parent | 1fcf354f4736ed2349d18a5f08262810dbc8dc9c (diff) | |
download | luarocks-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.lua | 3 |
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") | |||
11 | type_check.rockspec_format = "1.1" | 11 | type_check.rockspec_format = "1.1" |
12 | 12 | ||
13 | local string_1 = { _type = "string" } | 13 | local string_1 = { _type = "string" } |
14 | local number_1 = { _type = "number" } | ||
14 | local mandatory_string_1 = { _type = "string", _mandatory = true } | 15 | local 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 | } |