#NEWLINE# def check_distro( supported = SUPPORTED_DISTROS , verbose = False ) : #NEWLINE# #INDENT# "checks that the machine's distro is supported\n\n    :param tuple supported: tuple of supported distros\n    :param bool verbose: verbosity level\n    " #NEWLINE# set_global_verbosity_level ( verbose ) #NEWLINE# distro = get_distro ( ) #NEWLINE# lgr . debug ( 'Distribution Identified: {0}' . format ( distro ) ) #NEWLINE# if ( distro not in supported ) : #NEWLINE# #INDENT# lgr . error ( 'Your distribution is not supported.Supported Disributions are:' ) #NEWLINE# for distro in supported : #NEWLINE# #INDENT# lgr . error ( '    {0}' . format ( verbose ) ) #NEWLINE# #UNINDENT# sys . exit ( codes . mapping [ 'distro not supported' ] )