aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/queries.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-04-13 12:30:21 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-04-13 17:11:12 -0300
commit8bbf9ea3e4a6ce56708df556f2909349a0c93c9e (patch)
tree8355e184858b340d64e14ef0218379f47a3074be /src/luarocks/queries.lua
parentd33b56cd60d623500c88b8bd2924e6674fc22776 (diff)
downloadluarocks-8bbf9ea3e4a6ce56708df556f2909349a0c93c9e.tar.gz
luarocks-8bbf9ea3e4a6ce56708df556f2909349a0c93c9e.tar.bz2
luarocks-8bbf9ea3e4a6ce56708df556f2909349a0c93c9e.zip
Use a single load_manifest function throughout the program
Diffstat (limited to '')
-rw-r--r--src/luarocks/queries.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/queries.lua b/src/luarocks/queries.lua
index 6a9166ba..2699aa8c 100644
--- a/src/luarocks/queries.lua
+++ b/src/luarocks/queries.lua
@@ -172,6 +172,10 @@ do
172 end 172 end
173end 173end
174 174
175function queries.from_persisted_table(tbl)
176 return setmetatable(tbl, query_mt)
177end
178
175--- Build a string representation of a query package name. 179--- Build a string representation of a query package name.
176-- Includes namespace, name and version, but not arch or constraints. 180-- Includes namespace, name and version, but not arch or constraints.
177-- @param query table: a query table 181-- @param query table: a query table