Use url line in kickstart files as a repo
This commit is contained in:
parent
788105f59b
commit
4cb9239814
@ -3,6 +3,7 @@
|
|||||||
- Consolidate the download code for easier maint. (Mark McLoughlin)
|
- Consolidate the download code for easier maint. (Mark McLoughlin)
|
||||||
- Create a config class that can make using pungi modules easier. (Mark
|
- Create a config class that can make using pungi modules easier. (Mark
|
||||||
McLoughlin)
|
McLoughlin)
|
||||||
|
- Use url line in kickstart files as a repo
|
||||||
|
|
||||||
* Tue Sep 11 2007 Jesse Keating <jkeating@redhat.com>
|
* Tue Sep 11 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
- Fix a bug with default dest dir (notting)
|
- Fix a bug with default dest dir (notting)
|
||||||
|
@ -100,6 +100,13 @@ 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.
|
||||||
|
if ksparser.handler.method.url:
|
||||||
|
reponame = "ks-method-url"
|
||||||
|
repourl = ksparser.handler.method.url
|
||||||
|
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)
|
||||||
thisrepo = yum.yumRepo.YumRepository(repo.name)
|
thisrepo = yum.yumRepo.YumRepository(repo.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user