James Bowes
The attached patch adds a boolean to the callback object, filelog. If
true, then we send stuff to the sys/filelogs. In practice this makes the
code look similar to how it was pre-logger-gate.
I like it.

However I wonder the reason you don't want to log removing rpms, I would modify the callback.py patch to include
this:


--- callback.py.filelog 2007-02-01 19:56:22.000000000 +0100
+++ callback.py 2007-02-01 19:47:12.000000000 +0100
@@ -200,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)


- Terje

--- callback.py.filelog	2007-02-01 19:56:22.000000000 +0100
+++ callback.py	2007-02-01 19:47:12.000000000 +0100
@@ -200,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)
             
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to