aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-11-01 11:45:11 -0200
committerHisham <hisham@gobolinux.org>2016-11-01 11:46:23 -0200
commit0f51b38abaece8a68ab2f4ce341292f9081e798a (patch)
tree87e0fe688a1076639fde154d891630a5df0efb0d
parent374873ac627ca9e1c06b34688506e20b11360127 (diff)
downloadluarocks-0f51b38abaece8a68ab2f4ce341292f9081e798a.tar.gz
luarocks-0f51b38abaece8a68ab2f4ce341292f9081e798a.tar.bz2
luarocks-0f51b38abaece8a68ab2f4ce341292f9081e798a.zip
Use optional lpeg feature when available.
-rw-r--r--src/luarocks/upload/api.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua
index 132c1931..ad6d45e8 100644
--- a/src/luarocks/upload/api.lua
+++ b/src/luarocks/upload/api.lua
@@ -110,6 +110,7 @@ local function require_json()
110 for _, lib in ipairs(list) do 110 for _, lib in ipairs(list) do
111 local json_ok, json = pcall(require, lib) 111 local json_ok, json = pcall(require, lib)
112 if json_ok then 112 if json_ok then
113 pcall(json.use_lpeg) -- optional feature in dkjson
113 return json_ok, json 114 return json_ok, json
114 end 115 end
115 end 116 end