# HG changeset patch # User Kim Alvefur # Date 1649180958 -7200 # Node ID 1ec4a3a61cf75255a774fdfa93a2961376d3841c # Parent 76887863a6ae7f51741504308f75924bffd23e18# Parent c475a780216930dcbc4786872a5d17e651c5a05b Merge 0.12->trunk diff -r 76887863a6ae -r 1ec4a3a61cf7 prosodyctl --- a/prosodyctl Mon Apr 04 19:10:05 2022 +0200 +++ b/prosodyctl Tue Apr 05 19:49:18 2022 +0200 @@ -115,11 +115,17 @@ 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