From 095a690fe74637cddb1820f2c89b2fcd172db427 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 5 Dec 2020 17:02:27 +0100 Subject: [PATCH] Fix change_url check + set it as info? --- package_linter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package_linter.py b/package_linter.py index 3febce0..b8ce2e6 100755 --- a/package_linter.py +++ b/package_linter.py @@ -407,9 +407,9 @@ class App(TestSuite): @test() def change_url_script(app): - has_domain_arg = any(a["name"] == "is_public" for a in app.manifest["arguments"].get("install", [])) + has_domain_arg = any(a["name"] == "domain" 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 Info("Consider adding a change_url script to support changing where the app is installed") @test() def badges_in_readme(app):