diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-06 09:01:20 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-11 14:38:06 -0300 |
| commit | 95f929dfd3618a8efcb7f1bccbda046d623f0a47 (patch) | |
| tree | e8b4f33dc3ffb31f9ac3e4992b10b4f134f66e02 | |
| parent | b6e96a3651db5ed27ec561a110610893e5421a59 (diff) | |
| download | luarocks-95f929dfd3618a8efcb7f1bccbda046d623f0a47.tar.gz luarocks-95f929dfd3618a8efcb7f1bccbda046d623f0a47.tar.bz2 luarocks-95f929dfd3618a8efcb7f1bccbda046d623f0a47.zip | |
queries: fix tostring()
| -rw-r--r-- | src/luarocks/queries.lua | 2 |
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`. |
| 179 | function queries:__tostring() | 179 | function 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) |
