mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Minor tweak about version requirements
This commit is contained in:
parent
0b4a17ddd6
commit
ef8256372f
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue