From 6d5dfcd8fe409669eac9fb0787b306ff75115825 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 13 Apr 2015 19:24:13 -0300 Subject: Fix crash on `luarocks --tree=/path list`. Closes #347. --- src/luarocks/type_check.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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") type_check.rockspec_format = "1.1" local string_1 = { _type = "string" } +local number_1 = { _type = "number" } local mandatory_string_1 = { _type = "string", _mandatory = true } -- Syntax for type-checking tables: @@ -159,7 +160,7 @@ local manifest_types = { op = string_1, version = { string = string_1, - _any = 0, + _any = number_1, } } } -- cgit v1.2.3-55-g6feb