aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-17 01:39:35 +0100
committerKim Alvefur <zash@zash.se>2022-02-17 01:39:35 +0100
commitebcb37baa44d8fb6df8748acd5874e011c3310b3 (patch)
tree0fbde2cedcec5e5a59660caa8a1cd8457e61e9d6 /prosodyctl
parent89c2a5ac30f37c932f2f9d1d8a268ee781a91f20 (diff)
downloadprosody-ebcb37baa44d8fb6df8748acd5874e011c3310b3.tar.gz
prosody-ebcb37baa44d8fb6df8748acd5874e011c3310b3.zip
prosodyctl: Restore 'list --outdated'
Parsing --flags puts it into 'opts', so --outdated wasn't passed to luarocks, breaking that functionality
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl4
1 files changed, 4 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 4ff9904a..2d1f5195 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -115,6 +115,10 @@ function commands.list(arg)
show_usage([[list]], [[Shows installed rocks]]);
return 0;
end
+ if opts.outdated then
+ -- put this back for luarocks
+ arg[1] = "--outdated";
+ end
local ret = call_luarocks("list", arg[1]);
return ret;
end