mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #64 from YunoHost/check-required-yunohost-version
Add a warning if required YunoHost version is still 2.x
This commit is contained in:
commit
f0b497d996
1 changed files with 12 additions and 0 deletions
|
@ -380,6 +380,18 @@ class App():
|
|||
"but rather the website or repo of the upstream app itself..."
|
||||
)
|
||||
|
||||
yunohost_version_req = manifest.get("requirements", {}).get("yunohost", None)
|
||||
if yunohost_version_req:
|
||||
major_version = yunohost_version_req.split()[-1]
|
||||
if major_version.startswith("2"):
|
||||
print_warning(
|
||||
"YunoHost version requirement is still 2.x ... Good job if "
|
||||
"it does still work on Jessie !... But are you really sure "
|
||||
"about that ;) ? be careful that many new helpers you might "
|
||||
"already be playing with are only available on 3.x..."
|
||||
)
|
||||
|
||||
|
||||
|
||||
class Script():
|
||||
|
||||
|
|
Loading…
Reference in a new issue