Use a better method to get the ks method into a repo.
Requires a newer version of pykickstart, indicate such in the spec.
This commit is contained in:
parent
4cb9239814
commit
f074a600de
@ -10,7 +10,7 @@ License: GPLv2
|
|||||||
URL: http://hosted.fedoraproject.org/projects/pungi
|
URL: http://hosted.fedoraproject.org/projects/pungi
|
||||||
Source0: http://linux.duke.edu/projects/%{name}/release/%{name}-%{version}.tar.gz
|
Source0: http://linux.duke.edu/projects/%{name}/release/%{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: anaconda-runtime, yum => 3.0.3
|
Requires: anaconda-runtime, yum => 3.0.3, pykickstart => 1.13
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
@ -100,12 +100,10 @@ class Gather(pypungi.PungiBase):
|
|||||||
arches.append('src') # throw source in there, filter it later
|
arches.append('src') # throw source in there, filter it later
|
||||||
|
|
||||||
# deal with our repos
|
# deal with our repos
|
||||||
# Check to see if method was url, add that to the repo list.
|
try:
|
||||||
if ksparser.handler.method.url:
|
ksparser.handler.repo.methodToRepo()
|
||||||
reponame = "ks-method-url"
|
except:
|
||||||
repourl = ksparser.handler.method.url
|
pass
|
||||||
newrepo = ksparser.handler.RepoData(name=reponame, baseurl=repourl)
|
|
||||||
ksparser.handler.repo.add(newrepo)
|
|
||||||
|
|
||||||
for repo in ksparser.handler.repo.repoList:
|
for repo in ksparser.handler.repo.repoList:
|
||||||
self.logger.info('Adding repo %s' % repo.name)
|
self.logger.info('Adding repo %s' % repo.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user