[yum-cvs] yum/yum config.py,1.51,1.52

Seth Vidal skvidal at login.linux.duke.edu
Fri Mar 25 10:17:48 UTC 2005


Update of /home/groups/yum/cvs/yum/yum
In directory login:/tmp/cvs-serv16066/yum

Modified Files:
	config.py 
Log Message:

minor changes in config.py
 - make reposdir variableReplaced for $vars
 - make a couple of items that were uselessly tuples into lists


Index: config.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/config.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- config.py	25 Mar 2005 09:42:25 -0000	1.51
+++ config.py	25 Mar 2005 10:17:46 -0000	1.52
@@ -311,8 +311,8 @@
             setattr(self, option, rootedpath)
         
         # bandwidth limit options require special parsing
-        for option, getfunc in (('bandwidth', self.cfg.getbytes), 
-                                ('throttle', self.cfg.getthrottle)):
+        for option, getfunc in [('bandwidth', self.cfg.getbytes), 
+                                ('throttle', self.cfg.getthrottle)]:
             value = getfunc('main', option, 0)
             value = variableReplace(self.yumvar, value)
             self.configdata[option] = value
@@ -320,14 +320,14 @@
 
         
         # weird ones
-        for option in ['commands', 'installonlypkgs', 'kernelpkgnames', 'exclude']:
-            self.configdata[option] = variableReplace(self.yumvar, self.configdata[option])
+        for option in ['commands', 'installonlypkgs', 'kernelpkgnames', 'exclude'
+                       'reposdir']:
             self.configdata[option] = variableReplace(self.yumvar, self.configdata[option])
             setattr(self, option, self.configdata[option])
 
         # make our lists into lists. :)
-        for option in ('exclude', 'installonlypkgs', 'kernelpkgnames', 
-                'tsflags', 'reposdir'):
+        for option in ['exclude', 'installonlypkgs', 'kernelpkgnames', 
+                'tsflags', 'reposdir']:
             self.configdata[option] = parseList(self.configdata[option])
             setattr(self, option, self.configdata[option])
 




More information about the Yum-cvs-commits mailing list