[yum-cvs] yum callback.py, 1.31, 1.32 cli.py, 1.248, 1.249 yum-updatesd.py, 1.34, 1.35

James Bowes jbowes at linux.duke.edu
Sat Feb 3 16:05:22 UTC 2007


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

Modified Files:
	callback.py cli.py yum-updatesd.py 
Log Message:
Fix for rhbz 222835 - Yet another patch for logging

Index: callback.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/callback.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- callback.py	1 Feb 2007 04:21:22 -0000	1.31
+++ callback.py	3 Feb 2007 16:05:19 -0000	1.32
@@ -35,6 +35,7 @@
         self.marks = 27
         self.lastmsg = None
         self.logger = logging.getLogger('yum.filelogging.RPMInstallCallback')
+        self.filelog = False
 
         self.myprocess = { TS_UPDATE : 'Updating', 
                            TS_ERASE: 'Erasing',
@@ -139,7 +140,7 @@
                     except KeyError:
                         pass
 
-                    if self.output:
+                    if self.filelog:
                         pkgrep = self._logPkgString(hdr)
                         msg = '%s: %s' % (processed, pkgrep)
                         self.logger.info(msg)
@@ -199,7 +200,7 @@
 
         elif what == rpm.RPMCALLBACK_UNINST_STOP:
             self.total_removed += 1
-            if self.output and h not in self.installed_pkg_names:
+            if self.filelog and h not in self.installed_pkg_names:
                 logmsg = _('Erased: %s' % (h))
                 self.logger.info(logmsg)
             

Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.248
retrieving revision 1.249
diff -u -r1.248 -r1.249
--- cli.py	27 Jan 2007 03:04:48 -0000	1.248
+++ cli.py	3 Feb 2007 16:05:19 -0000	1.249
@@ -450,6 +450,7 @@
         if self.conf.debuglevel < 2:
             output = 0
         cb = callback.RPMInstallCallback(output=output)
+        cb.filelog = True
         cb.tsInfo = self.tsInfo
 
         self.verbose_logger.log(yum.logginglevels.INFO_2, 'Running Transaction')

Index: yum-updatesd.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum-updatesd.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- yum-updatesd.py	27 Jan 2007 03:04:48 -0000	1.34
+++ yum-updatesd.py	3 Feb 2007 16:05:20 -0000	1.35
@@ -302,8 +302,8 @@
         self.updd.ts.check() #required for ordering
         self.updd.ts.order() # order
         cb = callback.RPMInstallCallback(output = 0)
+        cb.filelog = True
             
-        # FIXME: need to do filelog
         cb.tsInfo = self.updd.tsInfo
         try:
             self.updd.runTransaction(cb=cb)




More information about the Yum-cvs-commits mailing list