From ebcb37baa44d8fb6df8748acd5874e011c3310b3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 17 Feb 2022 01:39:35 +0100 Subject: prosodyctl: Restore 'list --outdated' Parsing --flags puts it into 'opts', so --outdated wasn't passed to luarocks, breaking that functionality --- prosodyctl | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3