Luke Macken wrote:
On Tue, Apr 24, 2007 at 09:34:33AM -0400, James Antill wrote:
o ysp_show_pkg_md_info() -- This looks like it would best fit into
yum.update_md.UpdateNotice.__str__. Right now the __str__ for
UpdateNotices is a bit ugly, but improvements are definitely
welcome, and that seems like the place to do something like this.
Very much so, but I didn't want to just reassign parts of the class. If
you think it's good to change it though, feel free to replace the
__str__ function and then delete that function with a simple print.
I committed some cleanups to the yum.update_md.UpdateNotice.__str__ method.
Attached is a patch to utilize it for the yum-security plugin. This patch is
generated against CVS HEAD + yum-security-plugin.patch from your last email.
So info-sec now looks like this:
[EMAIL PROTECTED] ~]$ sudo yum --security info-sec
Loading "security" plugin
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Loading mirror speeds from cached hostfile
===============================================================================
mutt-1.5.14-3.fc7
===============================================================================
Update ID : FEDORA-2007-0001
Release : Fedora Core 7
Type : security
Status : testing
Issued : 2007-05-07 23:27:54.125243
Bugs : 123 - netstat -M problem
: 23425 - Bugzilla omits the bugzilla report item for bug reports
CVEs : CVE-2007-0000
Description : foobar
Files : mutt-debuginfo-1.5.14-3.fc7.i386.rpm
: mutt-1.5.14-3.fc7.i386.rpm
: mutt-1.5.14-3.fc7.src.rpm
info-sec done
Feel free to make any tweaks to the output that you want.
luke
------------------------------------------------------------------------
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
Hi Luke and James
I have added the latest 2 patches to the security plugin in yum-utils
CVS, please checkout that every thing works as expected.
Tim
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel