mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
improve version check & rename check key
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
92608c6ee3
commit
d4d739bbe2
1 changed files with 2 additions and 2 deletions
|
@ -2462,11 +2462,11 @@ def _check_manifest_requirements(
|
|||
)
|
||||
|
||||
# Yunohost version
|
||||
required_yunohost_version = manifest["integration"].get("yunohost", "4.3")
|
||||
required_yunohost_version = manifest["integration"].get("yunohost", "4.3").strip(">= ")
|
||||
current_yunohost_version = get_ynh_package_version("yunohost")["version"]
|
||||
|
||||
yield (
|
||||
"version",
|
||||
"required_yunohost_version",
|
||||
version.parse(required_yunohost_version)
|
||||
<= version.parse(current_yunohost_version),
|
||||
{"current": current_yunohost_version, "required": required_yunohost_version},
|
||||
|
|
Loading…
Add table
Reference in a new issue