From d762f9f4f1e88f0cc8c64709ef5f2b1a400ddf85 Mon Sep 17 00:00:00 2001 From: Moul Date: Thu, 28 Apr 2016 23:32:13 +0200 Subject: [PATCH] [enh] manifest: add succeed message for 'multi_instance' key check. --- package_linter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 7a2d9f5..6cb6052 100755 --- a/package_linter.py +++ b/package_linter.py @@ -78,7 +78,8 @@ def check_manifest(manifest): print_wrong("You should specify 'free' or 'non-free' software package in the license field.") elif "license" in manifest: print_right("\"licence\" key value is good") if "multi_instance" in manifest and manifest["multi_instance"] != 1 and manifest["multi_instance"] != 0: - print_wrong("multi_instance field must be boolean type values 'true' or 'false' and not string type.") + print_wrong("\"multi_instance\" field must be boolean type values 'true' or 'false' and not string type") + elif "multi_instance" in manifest: print_right("\"multi_isntance\" field is good") if "services" in manifest: services = ("nginx", "php5-fpm", "mysql", "uwsgi", "metronome", "postfix", "dovecot") #, "rspamd", "rmilter") i = 0