diff options
author | Kim Alvefur <zash@zash.se> | 2022-04-05 19:49:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-04-05 19:49:18 +0200 |
commit | b887ce05690c50fead2615eb6c1491bef523304d (patch) | |
tree | b0ac55b0d8a9ec9f1853225f802c4363cca2fb70 | |
parent | 4f3aa0455cd725a6ec68a1c394ea0d7d9b445134 (diff) | |
parent | 03299ee37d3ceb4173a01567d2285869e8737510 (diff) | |
download | prosody-b887ce05690c50fead2615eb6c1491bef523304d.tar.gz prosody-b887ce05690c50fead2615eb6c1491bef523304d.zip |
Merge 0.12->trunk
-rwxr-xr-x | prosodyctl | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -115,11 +115,17 @@ function commands.list(arg) show_usage([[list]], [[Shows installed rocks]]); return 0; end + local server = opts.server or configmanager.get("*", "plugin_server"); if opts.outdated then -- put this back for luarocks arg[1] = "--outdated"; + + if not server then + show_warning("There is no 'plugin_server' option in the configuration file, but this is needed for 'list --outdated' to work."); + return 1; + end end - local ret = call_luarocks("list", arg[1]); + local ret = call_luarocks("list", arg[1], server); return ret; end |