From 4be3c72bd5887acdbcb8f79239aa95d066ca1f47 Mon Sep 17 00:00:00 2001 From: Mark Montague Date: Fri, 7 Oct 2016 07:50:52 +0200 Subject: [PATCH] pungi: Replace kickstart repo url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Old Pungi should replace yum baseurl/mirrorlist when doing buildinstall. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1264570 Signed-off-by: Lubomír Sedlář --- pungi/gather.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pungi/gather.py b/pungi/gather.py index c071db88..88b706d5 100644 --- a/pungi/gather.py +++ b/pungi/gather.py @@ -1397,8 +1397,10 @@ class Pungi(PungiBase): # The not bool() thing is because pykickstart is yes/no on # whether to ignore groups, but yum is a yes/no on whether to # include groups. Awkward. + repo.mirrorlist = yum.parser.varReplace(repo.mirrorlist, self.ayum.conf.yumvar) cmd.extend(["--mirrorlist", repo.mirrorlist]) else: + repo.baseurl = yum.parser.varReplace(repo.baseurl, self.ayum.conf.yumvar) cmd.extend(["--source", repo.baseurl]) # Add the repo in the destdir to our yum object