# HG changeset patch # User João Duarte # Date 1564593731 25200 # Node ID 02d8f475a96d9b4861933bc25a09428201cb7951 # Parent 5655cd9fc8e986807ee876fd3453ccd9af49e8ce util.prosodyctl: call_luarocks function is now compatible with the list command diff -r 5655cd9fc8e9 -r 02d8f475a96d util/prosodyctl.lua --- a/util/prosodyctl.lua Wed Jul 31 10:07:22 2019 -0700 +++ b/util/prosodyctl.lua Wed Jul 31 10:22:11 2019 -0700 @@ -312,7 +312,11 @@ elseif operation == "remove" then show_message("Removing %s from %s", mod, dir); end - os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod); + if operation == "list" then + os.execute("luarocks list --tree='"..dir.."'") + else + os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod); + end if operation == "install" then show_module_configuration_help(mod); end