def get_repo(name, basedir=None, **kwargs):
 repos = list_repos(basedir)
 repofile = ''
 for repo in repos:
  if (repo == name):
   repofile = repos[repo]['file']
 if repofile:
  filerepos = _parse_repo_file(repofile)[1]
  return filerepos[name]
 return {}

def get_repo ( name , basedir = None , ** kwargs ) : repos = list_repos ( basedir ) repofile = '' for repo in repos : if ( repo == name ) : repofile = repos [ repo ] [ 'file' ] if repofile : filerepos = _parse_repo_file ( repofile ) [ 1 ] return filerepos [ name ] return { }
display a repo from the /etc/opkg/* .