Support yum repository priorities supplied through kickstart.
Signed-off-by: Mark McLoughlin <markmc(a)redhat.com>
Index: pungi/pypungi/gather.py
===================================================================
--- pungi.orig/pypungi/gather.py
+++ pungi/pypungi/gather.py
@@ -117,6 +117,8 @@ 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
+ if not repo.priority is None:
+ thisrepo.priority = repo.priority
self.ayum.repos.add(thisrepo)
self.ayum.repos.enableRepo(thisrepo.id)
self.ayum._getRepos(thisrepo=thisrepo.id, doSetup = True)
--
Show replies by thread