def _specify_repositories(base, disablerepo, enablerepo):
 base.read_all_repos()
 repos = base.repos
 for repo_pattern in disablerepo:
  for repo in repos.get_matching(repo_pattern):
   repo.disable()
 for repo_pattern in enablerepo:
  for repo in repos.get_matching(repo_pattern):
   repo.enable()

def _specify_repositories ( base , disablerepo , enablerepo ) : base . read_all_repos ( ) repos = base . repos for repo_pattern in disablerepo : for repo in repos . get_matching ( repo_pattern ) : repo . disable ( ) for repo_pattern in enablerepo : for repo in repos . get_matching ( repo_pattern ) : repo . enable ( )
enable and disable repositories matching the provided patterns .