Repo cost is now actually referenced as 'cost'.

This commit is contained in:
Jesse Keating 2008-06-04 16:28:35 -04:00
parent baa1ce8ee1
commit 1b58d024a3

View File

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