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

James Bowes jbowes at redhat.com
Thu Feb 1 14:33:05 UTC 2007


Hi List!

In the yum cli, when your debuglevel is less than 2, the rpm callback
object had output set to 0. In yum-updatesd, output was always 0.
This value for output was used both to determine if stuff would get
printed to stdout, and if stuff would be sent to the sys/filelogs.
That's not what we want though; we should always sent to the
sys/filelogs when doing a real rpm transaction.

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.

Feedback and flames appreciated.

-James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-filelog-with-0debug.patch
Type: text/x-patch
Size: 1693 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070201/79757cf5/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070201/79757cf5/attachment.pgp 


More information about the Yum-devel mailing list