take possible kiekerjan edition into account in tag

This commit is contained in:
github@kiekerjan.isdronken.nl 2021-05-09 21:16:22 +02:00
parent cb37c6f2d0
commit 2865cad111
1 changed files with 4 additions and 3 deletions

View File

@ -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