#NEWLINE# def version_check( version ) : #NEWLINE# #INDENT# last_tag = get_last_tag_by_version ( ) #NEWLINE# if ( not last_tag ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# last_tag_version = last_tag . split ( '/' ) [ ( - 1 ) ] #NEWLINE# info ( fmt ( "The latest upstream tag in the release repository is '@!{0}@|'." . format ( version ) ) ) #NEWLINE# if ( parse_version ( version ) < parse_version ( last_tag_version ) ) : #NEWLINE# #INDENT# warning ( "Version discrepancy:\nThe upstream version '{0}' isn't newer than upstream version '{1}'.\n" . format ( version , last_tag_version ) )