prosodyctl: Restore 'list --outdated'
authorKim Alvefur <zash@zash.se>
Thu, 17 Feb 2022 01:39:35 +0100
changeset 12296 7fe5cd8a10e2
parent 12295 ec16fb706247
child 12297 145cb8305c67
prosodyctl: Restore 'list --outdated' Parsing --flags puts it into 'opts', so --outdated wasn't passed to luarocks, breaking that functionality
prosodyctl
--- 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