Software /
code /
prosody
Changeset
12292:7fe5cd8a10e2
prosodyctl: Restore 'list --outdated'
Parsing --flags puts it into 'opts', so --outdated wasn't passed to
luarocks, breaking that functionality
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 17 Feb 2022 01:39:35 +0100 |
parents | 12291:ec16fb706247 |
children | 12293:145cb8305c67 |
files | prosodyctl |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Tue Feb 15 22:14:40 2022 +0100 +++ b/prosodyctl Thu Feb 17 01:39:35 2022 +0100 @@ -115,6 +115,10 @@ 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