aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-07-28 17:24:25 -0300
committerHisham <hisham@gobolinux.org>2016-07-28 17:24:25 -0300
commit813ad75a7f87d96bd372e7c2eca6a677009722a2 (patch)
treecd4e58857fbba03b0f94cbc78ceb81147d5c8a89 /src
parentaccce73cf90bde70baa3d8101b76ca56b0cb0720 (diff)
downloadluarocks-813ad75a7f87d96bd372e7c2eca6a677009722a2.tar.gz
luarocks-813ad75a7f87d96bd372e7c2eca6a677009722a2.tar.bz2
luarocks-813ad75a7f87d96bd372e7c2eca6a677009722a2.zip
Fix field name building in type_check.lua
Port fix by @mpeterv in 5f069526966ae37319ba745644a43e0cf64ad62c
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/core/type_check.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/luarocks/core/type_check.lua b/src/luarocks/core/type_check.lua
index a2e14efd..1822312b 100644
--- a/src/luarocks/core/type_check.lua
+++ b/src/luarocks/core/type_check.lua
@@ -134,9 +134,12 @@ end
134 134
135local function mkfield(context, field) 135local function mkfield(context, field)
136 if context == "" then 136 if context == "" then
137 return field 137 return tostring(field)
138 elseif type(field) == "string" then
139 return context.."."..field
140 else
141 return context.."["..tostring(field).."]"
138 end 142 end
139 return context.."."..field
140end 143end
141 144
142--- Type check the contents of a table. 145--- Type check the contents of a table.