[yum-cvs] yum/yum config.py,1.118,1.119

James Bowes jbowes at linux.duke.edu
Thu Apr 26 13:24:37 UTC 2007


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv18013/yum

Modified Files:
	config.py 
Log Message:
Revert config changes to use a metaclass.

We need to let plugins add new class attributes to the config classes, and to
have these new class attributes be accessable from subclasses.
Rather than wrangle the metaclass code to do this (if possible), let's just
revert it.


Index: config.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/config.py,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- config.py	17 Apr 2007 09:25:34 -0000	1.118
+++ config.py	26 Apr 2007 13:24:35 -0000	1.119
@@ -439,7 +439,7 @@
         # get options in ConfigParser object
         cfgOptions = self.cfg.options(section)
         # Write options
-        for name, value in self.iteritems():
+        for name, value in self.options:
             option = self.optionobj(name)
             if always is None or name in always or option.default != value or name in cfgOptions :
                 fileobj.write("%s=%s\n" % (name, option.tostring(value)))




More information about the Yum-cvs-commits mailing list