mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Recategorize info as warning for stuff done by 99% of level 7+ apps
This commit is contained in:
parent
7a2a98a0da
commit
4cee0da0bb
1 changed files with 5 additions and 10 deletions
|
@ -544,12 +544,12 @@ class App(TestSuite):
|
||||||
def config_panel(app):
|
def config_panel(app):
|
||||||
|
|
||||||
if file_exists(app.path + "config_panel.json"):
|
if file_exists(app.path + "config_panel.json"):
|
||||||
yield Info(
|
yield Warning(
|
||||||
"JSON config panels are not supported anymore, should be replaced by a toml version"
|
"JSON config panels are not supported anymore, should be replaced by a toml version"
|
||||||
)
|
)
|
||||||
|
|
||||||
if file_exists(app.path + "config_panel.toml") and os.system("grep -q 'version = \"0.1\"' '%s'" % (app.path + "config_panel.toml")) == 0:
|
if file_exists(app.path + "config_panel.toml") and os.system("grep -q 'version = \"0.1\"' '%s'" % (app.path + "config_panel.toml")) == 0:
|
||||||
yield Info(
|
yield Warning(
|
||||||
"Config panels version 0.1 are not supported anymore, should be adapted for version 1.0"
|
"Config panels version 0.1 are not supported anymore, should be adapted for version 1.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -673,16 +673,11 @@ class App(TestSuite):
|
||||||
helper_req = official_helpers[helper]
|
helper_req = official_helpers[helper]
|
||||||
if not validate_version_requirement(helper_req):
|
if not validate_version_requirement(helper_req):
|
||||||
major_diff = manifest_req[0] > int(helper_req[0])
|
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 = (
|
message = (
|
||||||
"Using official helper %s implies requiring at least version %s, but manifest only requires %s"
|
"Using official helper %s implies requiring at least version %s, but manifest only requires %s"
|
||||||
% (helper, helper_req, yunohost_version_req)
|
% (helper, helper_req, yunohost_version_req)
|
||||||
)
|
)
|
||||||
yield Error(message) if major_diff else (
|
yield Error(message) if major_diff else Warning(message)
|
||||||
Info(message) if minor_diff else Warning(message)
|
|
||||||
)
|
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def helper_consistency_apt_deps(app):
|
def helper_consistency_apt_deps(app):
|
||||||
|
@ -707,7 +702,7 @@ class App(TestSuite):
|
||||||
% app.path
|
% app.path
|
||||||
)
|
)
|
||||||
if os.system(cmd) == 0:
|
if os.system(cmd) == 0:
|
||||||
yield Info(
|
yield Warning(
|
||||||
"When installing dependencies from extra repository, please include a `--key` argument (yes, even if it's official debian repos such as backports - because systems like Raspbian do not ship Debian's key by default!"
|
"When installing dependencies from extra repository, please include a `--key` argument (yes, even if it's official debian repos such as backports - because systems like Raspbian do not ship Debian's key by default!"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -781,7 +776,7 @@ class App(TestSuite):
|
||||||
for script in app.scripts.values()
|
for script in app.scripts.values()
|
||||||
if script.exists
|
if script.exists
|
||||||
):
|
):
|
||||||
yield Info(
|
yield Warning(
|
||||||
"The app still contains references to jessie, which could probably be cleaned up..."
|
"The app still contains references to jessie, which could probably be cleaned up..."
|
||||||
)
|
)
|
||||||
if any(
|
if any(
|
||||||
|
|
Loading…
Reference in a new issue