diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-13 12:31:51 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-13 17:11:12 -0300 |
commit | 6a80773c03f41823e68305a1dd6fbe4161cdd5a7 (patch) | |
tree | c2dc211a92972e30c80cfe84716aa696f8ab0965 | |
parent | 8bbf9ea3e4a6ce56708df556f2909349a0c93c9e (diff) | |
download | luarocks-6a80773c03f41823e68305a1dd6fbe4161cdd5a7.tar.gz luarocks-6a80773c03f41823e68305a1dd6fbe4161cdd5a7.tar.bz2 luarocks-6a80773c03f41823e68305a1dd6fbe4161cdd5a7.zip |
check types in report_missing_dependencies
-rw-r--r-- | src/luarocks/deps.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index ae15cd5e..26373177 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua | |||
@@ -106,6 +106,12 @@ end | |||
106 | -- "one" for the current default tree, "all" for all trees, | 106 | -- "one" for the current default tree, "all" for all trees, |
107 | -- "order" for all trees with priority >= the current default, "none" for no trees. | 107 | -- "order" for all trees with priority >= the current default, "none" for no trees. |
108 | function deps.report_missing_dependencies(name, version, dependencies, deps_mode, rocks_provided) | 108 | function deps.report_missing_dependencies(name, version, dependencies, deps_mode, rocks_provided) |
109 | assert(type(name) == "string") | ||
110 | assert(type(version) == "string") | ||
111 | assert(type(dependencies) == "table") | ||
112 | assert(type(deps_mode) == "string") | ||
113 | assert(type(rocks_provided) == "table") | ||
114 | |||
109 | local first_missing_dep = true | 115 | local first_missing_dep = true |
110 | 116 | ||
111 | for _, dep in ipairs(dependencies) do | 117 | for _, dep in ipairs(dependencies) do |