aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-04-06 09:01:20 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-04-11 14:38:06 -0300
commit95f929dfd3618a8efcb7f1bccbda046d623f0a47 (patch)
treee8b4f33dc3ffb31f9ac3e4992b10b4f134f66e02
parentb6e96a3651db5ed27ec561a110610893e5421a59 (diff)
downloadluarocks-95f929dfd3618a8efcb7f1bccbda046d623f0a47.tar.gz
luarocks-95f929dfd3618a8efcb7f1bccbda046d623f0a47.tar.bz2
luarocks-95f929dfd3618a8efcb7f1bccbda046d623f0a47.zip
queries: fix tostring()
-rw-r--r--src/luarocks/queries.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/queries.lua b/src/luarocks/queries.lua
index e47a5722..6a9166ba 100644
--- a/src/luarocks/queries.lua
+++ b/src/luarocks/queries.lua
@@ -176,7 +176,7 @@ end
176-- Includes namespace, name and version, but not arch or constraints. 176-- Includes namespace, name and version, but not arch or constraints.
177-- @param query table: a query table 177-- @param query table: a query table
178-- @return string: a result such as `my_user/my_rock 1.0` or `my_rock`. 178-- @return string: a result such as `my_user/my_rock 1.0` or `my_rock`.
179function queries:__tostring() 179function query_mt:__tostring()
180 local out = {} 180 local out = {}
181 if self.namespace then 181 if self.namespace then
182 table.insert(out, self.namespace) 182 table.insert(out, self.namespace)