# HG changeset patch # User João Duarte # Date 1563990500 25200 # Node ID 4d1206ac0d41f809f9706fb56f81be381bbf7ef1 # Parent 8fd6fb34d9c513f9f5750b909464abaee7e5f3bf prosodyctl: Updated the list command, to use the new directory for custom plugins diff -r 8fd6fb34d9c5 -r 4d1206ac0d41 prosodyctl --- a/prosodyctl Wed Jul 24 10:46:05 2019 -0700 +++ b/prosodyctl Wed Jul 24 10:48:20 2019 -0700 @@ -144,6 +144,11 @@ show_usage([[list]], [[Shows installed rocks]]); return 1; end + -- I'm considering that we are using just one path to custom plugins, and it is the first in prosody.paths.plugins, for now + for path in prosody.paths.plugins:gmatch("[^;]+") do + installer_plugin_path = path + break + end local flag = "--tree=" -- I'm considering this optional flag comes first if arg[1] and arg[1]:sub(1, #flag) == flag then @@ -151,7 +156,7 @@ os.execute("luarocks list --tree='"..dir.."'") return 0; else - os.execute("luarocks list --tree="..prosody.paths.plugins) + os.execute("luarocks list --tree="..installer_plugin_path) return 0; end end