mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
change_url script is only relevant if this is a webapp
This commit is contained in:
parent
7d5b87ef84
commit
94e81683ab
1 changed files with 2 additions and 1 deletions
|
@ -450,7 +450,8 @@ class App(TestSuite):
|
||||||
@test()
|
@test()
|
||||||
def change_url_script(app):
|
def change_url_script(app):
|
||||||
|
|
||||||
if not file_exists(app.path + "/scripts/change_url"):
|
has_domain_arg = any(a["name"] == "is_public" for a in app.manifest["arguments"].get("install", []))
|
||||||
|
if has_domain_arg and not file_exists(app.path + "/scripts/change_url"):
|
||||||
yield Warning("Consider adding a change_url script to support changing where the app is installed")
|
yield Warning("Consider adding a change_url script to support changing where the app is installed")
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
|
|
Loading…
Reference in a new issue