1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-23 07:27:05 +00:00

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

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