msger.raw("%s %s (%s)" % (name,
VERSION,
misc.get_hostname_distro_str()))
+ def print_notification():
+ """notification since v2.0.1"""
+ print("\n=================================================================================================================================\n")
+ notification_msg = "MIC Notification since v2.0.1:\n"
+ notification_msg += "mic version has been upgraded from python2 to python3. Due to compatibility problem between python2 and python3.\n"
+ notification_msg += "OS of Image creation server for projects using python2 : have to be equal or lower than ubuntu 20.04 and openuse 42.3.\n"
+ notification_msg += "OS of Image creation server for projects using python3 : have to be equal or higher than ubuntu 22.04 and openuse 15.2."
+ print("%s\n" % notification_msg)
+ print("=================================================================================================================================\n")
def has_parameter(arg, arglist):
"""
# Add SIGTERM handler for exit gracefully
signal.signal(signal.SIGTERM, sigterm_handler)
+ #print notification for v2.0.1
+ print_notification()
+
# Create top level parser
epilog = "Try 'mic SUBCOMMAND --help' for help on a specific subcommand."
description = "mic - the Image Creation tool"