diff options
| author | Hisham <hisham@gobolinux.org> | 2016-11-01 11:45:11 -0200 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-11-01 11:45:11 -0200 |
| commit | e05e1c337c44f39039bf6c16ae36d26f9d75dd41 (patch) | |
| tree | e615a1463c783c59673395fe52bd34821f40411c /src | |
| parent | 7b65bd024b5dbe14bdbf4b3b348223c6639bfe62 (diff) | |
| download | luarocks-e05e1c337c44f39039bf6c16ae36d26f9d75dd41.tar.gz luarocks-e05e1c337c44f39039bf6c16ae36d26f9d75dd41.tar.bz2 luarocks-e05e1c337c44f39039bf6c16ae36d26f9d75dd41.zip | |
Use optional lpeg feature when available.
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/upload/api.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua index fdc4ee63..ba657186 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 |
