diff options
author | Chris Lumens <clumens@redhat.com> | 2008-12-15 11:44:17 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-12-15 11:44:17 -0500 |
commit | 98a23322318f0d9b39b759b0138e1682d8814cc1 (patch) | |
tree | bf78bcad4f902f03ceaaa2a7bd1e5a7fc45d8e48 | |
parent | e0cbcf83ffcfd3daf9f668b93caf48491a1b5091 (diff) | |
download | anaconda-98a23322318f0d9b39b759b0138e1682d8814cc1.tar.gz anaconda-98a23322318f0d9b39b759b0138e1682d8814cc1.tar.xz anaconda-98a23322318f0d9b39b759b0138e1682d8814cc1.zip |
When there's no baseurl, set a default of [] instead of [''] (#476208).
-rw-r--r-- | yuminstall.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/yuminstall.py b/yuminstall.py index 05ea1694a..1dfa114b3 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -600,10 +600,14 @@ class AnacondaYum(YumSorter): if self.anaconda.isKickstart: for ksrepo in self.anaconda.id.ksdata.repo.repoList: repo = AnacondaYumRepo(ksrepo.name) - repo.baseurl = [ ksrepo.baseurl ] repo.mirrorlist = ksrepo.mirrorlist repo.name = ksrepo.name + if not ksrepo.baseurl: + repo.baseurl = [] + else: + repo.baseurl = [ ksrepo.baseurl ] + if ksrepo.cost: repo.cost = ksrepo.cost |