Support yum repository priorities supplied through kickstart.

Signed-off-by: Mark McLoughlin <[EMAIL PROTECTED]>

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)

-- 

--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to