Mercurial > prosody-hg
comparison util/prosodyctl.lua @ 10209:e6ba8bb91905
util/prosodyctl: call_luarocks now sets a directory variable itself
| author | João Duarte <jvsDuarte08@gmail.com> |
|---|---|
| date | Fri, 16 Aug 2019 15:03:50 -0700 |
| parents | 219a4958673d |
| children | 649acbfbf7fe |
comparison
equal
deleted
inserted
replaced
| 10208:219a4958673d | 10209:e6ba8bb91905 |
|---|---|
| 294 for path in plugin_paths:gmatch("[^;]+") do | 294 for path in plugin_paths:gmatch("[^;]+") do |
| 295 return path; | 295 return path; |
| 296 end | 296 end |
| 297 end | 297 end |
| 298 | 298 |
| 299 local function call_luarocks(operation, mod, dir) | 299 local function call_luarocks(mod, operation) |
| 300 local dir = get_path_custom_plugins(prosody.paths.plugins); | |
| 300 if operation == "install" then | 301 if operation == "install" then |
| 301 show_message("Installing %s at %s", mod, dir); | 302 show_message("Installing %s at %s", mod, dir); |
| 302 elseif operation == "remove" then | 303 elseif operation == "remove" then |
| 303 show_message("Removing %s from %s", mod, dir); | 304 show_message("Removing %s from %s", mod, dir); |
| 304 end | 305 end |
