From 22bdd73fe58c6c554afe8d6ef3582fc0d96d6c88 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 16 Aug 2022 23:38:40 +0200 Subject: [PATCH] Using (un)protected_uris / skipped_uris settings is unacceptable nowadays --- package_linter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package_linter.py b/package_linter.py index 7d065d5..8e7d70a 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2146,6 +2146,13 @@ class Script(TestSuite): @test() def set_legacy_permissions(self): if self.containsregex( + r"ynh_app_setting_set .*protected_uris" + ) or self.containsregex(r"ynh_app_setting_set .*skipped_uris"): + yield Error( + "permission system: it looks like the app is still using super-legacy (un)protected/skipped_uris settings. This is now completely deprecated. Please check https://yunohost.org/packaging_apps_permissions for a documentation on how to migrate the app to the new permission system." + ) + + elif self.containsregex( r"ynh_app_setting_set .*protected_" ) or self.containsregex(r"ynh_app_setting_set .*skipped_"): yield Warning(