Diff

prosodyctl @ 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
parent 12267:a52a0680fcd8
child 12435:1ee72c0013f3
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