def _get_repo_info(alias, repos_cfg=None):
 try:
  meta = dict((repos_cfg or _get_configured_repos()).items(alias))
  meta['alias'] = alias
  for (key, val) in six.iteritems(meta):
   if (val in ['0', '1']):
    meta[key] = (int(meta[key]) == 1)
   elif (val == 'NONE'):
    meta[key] = None
  return meta
 except (ValueError, configparser.NoSectionError):
  return {}

def _get_repo_info ( alias , repos_cfg = None ) : try : meta = dict ( ( repos_cfg or _get_configured_repos ( ) ) . items ( alias ) ) meta [ 'alias' ] = alias for ( key , val ) in six . iteritems ( meta ) : if ( val in [ '0' , '1' ] ) : meta [ key ] = ( int ( meta [ key ] ) == 1 ) elif ( val == 'NONE' ) : meta [ key ] = None return meta except ( ValueError , configparser . NoSectionError ) : return { }
get one repo meta-data .