diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-09-29 15:49:19 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-09-29 15:49:19 +0000 |
commit | 922c6d125cbd843a003ad0a5b0a23fd5c655d7da (patch) | |
tree | 5389dae3c820d715deb664491731ca0f06e26492 /yuminstall.py | |
parent | e196572faaa85c498fc676c597148f3d78a1a9c1 (diff) | |
download | anaconda-922c6d125cbd843a003ad0a5b0a23fd5c655d7da.tar.gz anaconda-922c6d125cbd843a003ad0a5b0a23fd5c655d7da.tar.xz anaconda-922c6d125cbd843a003ad0a5b0a23fd5c655d7da.zip |
2006-09-29 Jeremy Katz <katzj@redhat.com>
* yuminstall.py (YumBackend.writeConfiguration): Disable repo
writeout -- there are some weird cases that we need to decide what
to do with and right before FC6 isn't the time to do so
Diffstat (limited to 'yuminstall.py')
-rw-r--r-- | yuminstall.py | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/yuminstall.py b/yuminstall.py index bf67bf44a..a55e39fe8 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -1333,22 +1333,23 @@ class YumBackend(AnacondaBackend): map(lambda pkg: f.write("%s\n" % pkg), packages) def writeConfiguration(self): - emptyRepoConf = yum.config.RepoConf() - compulsorySettings = [ 'enabled' ] - for repo in self.ayum.repos.listEnabled(): - repo.disable() - fn = "%s/etc/yum.repos.d/%s.repo" % (self.instPath, repo.id) - f = open(fn , 'w') - f.write('[%s]\n' % (repo.id,)) - for k, v in emptyRepoConf.iteritems(): - repoval = repo.getAttribute(k) - if k not in compulsorySettings: - if not repoval or repoval == v: - continue - val = emptyRepoConf.optionobj(k).tostring(repoval) - f.write("%s=%s\n" % (k,val)) - repo.enable() - f.close() + return +# emptyRepoConf = yum.config.RepoConf() +# compulsorySettings = [ 'enabled' ] +# for repo in self.ayum.repos.listEnabled(): +# repo.disable() +# fn = "%s/etc/yum.repos.d/%s.repo" % (self.instPath, repo.id) +# f = open(fn , 'w') +# f.write('[%s]\n' % (repo.id,)) +# for k, v in emptyRepoConf.iteritems(): +# repoval = repo.getAttribute(k) +# if k not in compulsorySettings: +# if not repoval or repoval == v: +# continue +# val = emptyRepoConf.optionobj(k).tostring(repoval) +# f.write("%s=%s\n" % (k,val)) +# repo.enable() +# f.close() class YumProgress: def __init__(self, intf, text, total): |