Report obsolete use of -i/--installed with yunohost app list

This commit is contained in:
Alexandre Aubin 2020-11-16 17:49:29 +01:00
parent 6e0c314098
commit 813b244f01

View file

@ -1093,6 +1093,13 @@ class Script(TestSuite):
yield Error("'yunohost app initdb' is obsolete!!! Please use 'ynh_mysql_setup_db' instead.") yield Error("'yunohost app initdb' is obsolete!!! Please use 'ynh_mysql_setup_db' instead.")
if self.contains("yunohost tools port-available"): if self.contains("yunohost tools port-available"):
yield Error("'yunohost tools port-available is obsolete!!! Please use 'ynh_port_available' instead.") 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() @test()
def safe_rm(self): def safe_rm(self):