diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/type_check.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua index a99ec691..ead47bf2 100644 --- a/src/luarocks/type_check.lua +++ b/src/luarocks/type_check.lua | |||
| @@ -30,6 +30,10 @@ type_check.MAGIC_PLATFORMS = {} | |||
| 30 | 30 | ||
| 31 | do | 31 | do |
| 32 | local function fill_in_version(tbl, version) | 32 | local function fill_in_version(tbl, version) |
| 33 | if not tbl.fields then | ||
| 34 | return | ||
| 35 | end | ||
| 36 | |||
| 33 | for _, v in pairs(tbl.fields) do | 37 | for _, v in pairs(tbl.fields) do |
| 34 | if type(v) == "table" then | 38 | if type(v) == "table" then |
| 35 | if v._version == nil then | 39 | if v._version == nil then |
