Support includes and excludes from repos.

This commit is contained in:
Jesse Keating 2007-12-03 15:37:15 -05:00 committed by Jesse Keating
parent 3248639f9b
commit 43c0267445
1 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,9 @@ class Gather(pypungi.PungiBase):
self.logger.info('URL for repo %s is %s' % (thisrepo.name, thisrepo.baseurl))
thisrepo.basecachedir = self.ayum.conf.cachedir
thisrepo.enablegroups = True
thisrepo.failovermethod = 'priority'
thisrepo.failovermethod = 'priority' # This is until yum uses this failover by default
thisrepo.exclude = repo.excludepkgs
thisrepo.includepkgs = repo.includepkgs
self.ayum.repos.add(thisrepo)
self.ayum.repos.enableRepo(thisrepo.id)
self.ayum._getRepos(thisrepo=thisrepo.id, doSetup = True)