[yum-cvs] yum yum-updatesd.py,1.22.2.3,1.22.2.4

Jeremy Katz katzj at linux.duke.edu
Wed Nov 8 15:31:50 UTC 2006


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

Modified Files:
      Tag: yum-3_0_X
	yum-updatesd.py 
Log Message:
init plugins, fix log config (jbowes)

Index: yum-updatesd.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum-updatesd.py,v
retrieving revision 1.22.2.3
retrieving revision 1.22.2.4
diff -u -r1.22.2.3 -r1.22.2.4
--- yum-updatesd.py	6 Nov 2006 21:18:04 -0000	1.22.2.3
+++ yum-updatesd.py	8 Nov 2006 15:31:48 -0000	1.22.2.4
@@ -114,7 +114,7 @@
                       "NOTICE": syslog.LOG_NOTICE,
                       "INFO": syslog.LOG_INFO,
                       "DEBUG": syslog.LOG_DEBUG }
-        if type(lvl) == type(int):
+        if type(lvl) == int:
             return lvl
         if level_map.has_key(lvl.upper()):
             return level_map[lvl.upper()]
@@ -138,7 +138,7 @@
                          "LOCAL5": syslog.LOG_LOCAL5,
                          "LOCAL6": syslog.LOG_LOCAL6,
                          "LOCAL7": syslog.LOG_LOCAL7,}
-        if type(facility) == type(int):
+        if type(facility) == int:
             return facility
         elif facility_map.has_key(facility.upper()):
             return facility_map[facility.upper()]
@@ -326,8 +326,7 @@
                 os.makedirs(self.opts.nonroot_workdir)
             self.repos.setCacheDir(self.opts.nonroot_workdir)
 
-        self.doConfigSetup(fn=self.opts.yum_config,
-                           init_plugins = False)
+        self.doConfigSetup(fn=self.opts.yum_config)
 
     def refreshUpdates(self):
         self.doLock(YUM_PID_FILE)




More information about the Yum-cvs-commits mailing list