pungi: Replace kickstart repo url
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ář <lsedlar@redhat.com>
This commit is contained in:
parent
730764e2e7
commit
4be3c72bd5
@ -1397,8 +1397,10 @@ class Pungi(PungiBase):
|
|||||||
# The not bool() thing is because pykickstart is yes/no on
|
# The not bool() thing is because pykickstart is yes/no on
|
||||||
# whether to ignore groups, but yum is a yes/no on whether to
|
# whether to ignore groups, but yum is a yes/no on whether to
|
||||||
# include groups. Awkward.
|
# include groups. Awkward.
|
||||||
|
repo.mirrorlist = yum.parser.varReplace(repo.mirrorlist, self.ayum.conf.yumvar)
|
||||||
cmd.extend(["--mirrorlist", repo.mirrorlist])
|
cmd.extend(["--mirrorlist", repo.mirrorlist])
|
||||||
else:
|
else:
|
||||||
|
repo.baseurl = yum.parser.varReplace(repo.baseurl, self.ayum.conf.yumvar)
|
||||||
cmd.extend(["--source", repo.baseurl])
|
cmd.extend(["--source", repo.baseurl])
|
||||||
|
|
||||||
# Add the repo in the destdir to our yum object
|
# Add the repo in the destdir to our yum object
|
||||||
|
Loading…
Reference in New Issue
Block a user