From 813b244f01c441e7690a20244e987dfbfd4a28cf Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 16 Nov 2020 17:49:29 +0100 Subject: [PATCH] Report obsolete use of -i/--installed with yunohost app list --- package_linter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package_linter.py b/package_linter.py index 5b5320c..5791f13 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1093,6 +1093,13 @@ class Script(TestSuite): yield Error("'yunohost app initdb' is obsolete!!! Please use 'ynh_mysql_setup_db' instead.") if self.contains("yunohost tools port-available"): yield Error("'yunohost tools port-available is obsolete!!! Please use 'ynh_port_available' instead.") + if self.contains("yunohost app list -i") or self.contains("yunohost app list --installed"): + yield Warning( + "Argument --installed ain't needed anymore when using " + "'yunohost app list'. It directly returns the list of installed " + "apps.. Also beware that option -f is obsolete as well .. " + "Use grep -q 'id: $appname' to check a specific app is installed" + ) @test() def safe_rm(self):