From f990b5215e09582524bdba38a5c333667b720541 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 13 Aug 2022 17:36:18 +0200 Subject: [PATCH] Deprecate apps requiring only 3.x, + warning for app requring 4.0 (there's just a handful of those and most are old/notworking) --- package_linter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package_linter.py b/package_linter.py index 69955f3..c19a3c0 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1453,13 +1453,13 @@ class Manifest(TestSuite): yunohost_version_req = ( app.manifest.get("requirements", {}).get("yunohost", "").strip(">= ") ) - if yunohost_version_req.startswith("2."): + if yunohost_version_req.startswith("2.") or yunohost_version_req.startswith("3."): yield Critical( - "Your app only requires YunoHost >= 2.x, which tends to indicate that it may not be up to date with recommended packaging practices and helpers." + "Your app only requires YunoHost >= 2.x or 3.x, which tends to indicate that it may not be up to date with recommended packaging practices and helpers." ) elif yunohost_version_req.startswith( "3." - ) and not yunohost_version_req.startswith("3.8"): + ) and not yunohost_version_req.startswith("4.0"): yield Warning( "Your app only requires yunohost >= 3.x, which tends to indicate that it may not be up to date with recommended packaging practices and helpers." )