diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2006-02-02 18:50:38 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2006-02-02 18:50:38 +0000 |
commit | 74206d27634dafd44852136f81f317e731db1943 (patch) | |
tree | 36500ec8e783fa3a6b5681688400b2f6ae086090 /yuminstall.py | |
parent | 5b18ec80ce7d62829584a9570a983c2a9b29acf5 (diff) | |
download | anaconda-74206d27634dafd44852136f81f317e731db1943.tar.gz anaconda-74206d27634dafd44852136f81f317e731db1943.tar.xz anaconda-74206d27634dafd44852136f81f317e731db1943.zip |
Implement writeConfiguration (#115714)
Diffstat (limited to 'yuminstall.py')
-rw-r--r-- | yuminstall.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py index 123198e57..d110fa46a 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -1006,6 +1006,15 @@ class YumBackend(AnacondaBackend): map(lambda grp: f.write("@%s\n" % grp), self.ayum.tsInfo.instgroups) map(lambda pkg: f.write("%s\n" % pkg), packages) + def writeConfiguration(self) + for repo in self.repos.listEnabled(): + repo.disable() + fn = "%s/etc/yum.repos.d/%s.repo" % ( self.instPath, repo.id) + f = open(fn , 'w') + f.write(repo.dump()) + repo.enable() + f.close() + class YumProgress: def __init__(self, intf, text, total): window = intf.progressWindow(_("Installation Progress"), text, |