From 2865cad111d868e5dfb972a32bcce1e02ef2092d Mon Sep 17 00:00:00 2001 From: "github@kiekerjan.isdronken.nl" Date: Sun, 9 May 2021 21:16:22 +0200 Subject: [PATCH] take possible kiekerjan edition into account in tag --- management/status_checks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/management/status_checks.py b/management/status_checks.py index 529b09b3..73283249 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -861,14 +861,15 @@ def check_miab_version(env, output): output.print_warning("You are running version Mail-in-a-Box %s Kiekerjan Edition. Mail-in-a-Box version check disabled by privacy setting." % this_ver) else: latest_ver = get_latest_miab_version() + if this_ver[-3:] == "-kj" + this_ver_tag = this_ver[:-3] - if this_ver == latest_ver: + if this_ver_tag == latest_ver: output.print_ok("Mail-in-a-Box is up to date. You are running version %s Kiekerjan Edition." % this_ver) elif latest_ver is None: output.print_error("Latest Mail-in-a-Box version could not be determined. You are running version %s Kiekerjan Edition." % this_ver) else: - output.print_error("A new version of Mail-in-a-Box is available. You are running version %s Kiekerjan Edition. The latest version is %s. For upgrade instructions, see https://mailinabox.email. " - % (this_ver, latest_ver)) + output.print_error("A new upstream version of Mail-in-a-Box is available. You are running version %s Kiekerjan Edition. The latest version is %s. " % (this_ver, latest_ver)) def run_and_output_changes(env, pool): import json