From ef8256372fae5aa6c7fdb7be37fd1afc4fd69737 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 19 Nov 2020 00:40:35 +0100 Subject: [PATCH] Minor tweak about version requirements --- package_linter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index b45e44f..8a1d415 100755 --- a/package_linter.py +++ b/package_linter.py @@ -458,8 +458,9 @@ class App(TestSuite): helper_req = official_helpers[helper] if not validate_version_requirement(helper_req): major_diff = manifest_req[0] > int(helper_req[0]) + minor_diff = helper_req.startswith(yunohost_version_req) # This is meant to cover the case where manifest says "3.8" vs. the helper requires "3.8.1" message = "Using official helper %s implies requiring at least version %s, but manifest only requires %s" % (helper, helper_req, yunohost_version_req) - yield Error(message) if major_diff else Warning(message) + yield Error(message) if major_diff else (Info(message) if minor_diff else Warning(message)) @test()