Support repo costs. (pykickstart calls this priority for now)

This commit is contained in:
Jesse Keating 2008-04-15 07:08:35 -05:00
parent 5d33519dbf
commit b1bd3c7a46
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@ class Gather(pypungi.PungiBase):
thisrepo.failovermethod = 'priority' # This is until yum uses this failover by default
thisrepo.exclude = repo.excludepkgs
thisrepo.includepkgs = repo.includepkgs
if repo.priority:
thisrepo.cost = repo.priority
self.ayum.repos.add(thisrepo)
self.ayum.repos.enableRepo(thisrepo.id)
self.ayum._getRepos(thisrepo=thisrepo.id, doSetup = True)