diff options
author | Hisham <hisham@gobolinux.org> | 2016-07-11 01:15:41 -0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-07-11 01:15:41 -0300 |
commit | 994a041b4f1348564f390f3f4d8ec040c8edb4b8 (patch) | |
tree | 128d264d86576e0b62225056769b7097a745b822 /src | |
parent | 41eccd4ca6fe51f8174dd43744e7a4bab4daf2cb (diff) | |
parent | 77b41dd05a870feeb519e930472133f63cf94317 (diff) | |
download | luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.tar.gz luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.tar.bz2 luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.zip |
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/help.lua | 2 | ||||
-rw-r--r-- | src/luarocks/type_check.lua | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/luarocks/help.lua b/src/luarocks/help.lua index 28f97702..871e97e9 100644 --- a/src/luarocks/help.lua +++ b/src/luarocks/help.lua | |||
@@ -65,7 +65,7 @@ function help.command(flags, command) | |||
65 | --verbose Display verbose output of commands executed. | 65 | --verbose Display verbose output of commands executed. |
66 | --timeout=<seconds> Timeout on network operations, in seconds. | 66 | --timeout=<seconds> Timeout on network operations, in seconds. |
67 | 0 means no timeout (wait forever). | 67 | 0 means no timeout (wait forever). |
68 | Default is ]]..cfg.connection_timeout..[[.]]) | 68 | Default is ]]..tostring(cfg.connection_timeout)..[[.]]) |
69 | print_section("VARIABLES") | 69 | print_section("VARIABLES") |
70 | util.printout([[ | 70 | util.printout([[ |
71 | Variables from the "variables" table of the configuration file | 71 | Variables from the "variables" table of the configuration file |
diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua index 82763401..63c59ca2 100644 --- a/src/luarocks/type_check.lua +++ b/src/luarocks/type_check.lua | |||
@@ -234,9 +234,12 @@ end | |||
234 | 234 | ||
235 | local function mkfield(context, field) | 235 | local function mkfield(context, field) |
236 | if context == "" then | 236 | if context == "" then |
237 | return field | 237 | return tostring(field) |
238 | elseif type(field) == "string" then | ||
239 | return context.."."..field | ||
240 | else | ||
241 | return context.."["..tostring(field).."]" | ||
238 | end | 242 | end |
239 | return context.."."..field | ||
240 | end | 243 | end |
241 | 244 | ||
242 | --- Type check the contents of a table. | 245 | --- Type check the contents of a table. |