[Yum-devel] [PATCH] Possible fix for rhbz #222835

Terje Røsten terje.rosten at ntnu.no
Thu Feb 1 18:59:48 UTC 2007


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: log-erase.patch
Type: text/x-patch
Size: 461 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070201/4f30fa64/attachment.bin 


More information about the Yum-devel mailing list