def _get_name_map(saltenv=u'base'):
 u_name_map = {}
 name_map = get_repo_data(saltenv).get(u'name_map', {})
 for k in name_map.keys():
  u_name_map[k.decode(u'utf-8')] = name_map[k]
 return u_name_map

def _get_name_map ( saltenv = u'base' ) : u_name_map = { } name_map = get_repo_data ( saltenv ) . get ( u'name_map' , { } ) for k in name_map . keys ( ) : u_name_map [ k . decode ( u'utf-8' ) ] = name_map [ k ] return u_name_map
return a reverse map of full pkg names to the names recognized by winrepo .