[Yum] Patch for yum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'am working on a FIXME at nevral.getHeader
# FIXME - this should return a header object from rpmUtils

While doing this, I've realized of one change that simplifies a lot to fix the
FIXME, which is to rename the _getTag method of RPM_Base_Work object into a 
__getitem__ method. That allow to use  hdr['name'] instead of 
hdr[rpm.RPMTAG_NAME]
for every yum header object and also for brand rpm header objects.

It should be completelly transparent, and I have tested it with most of the
non-group commands of yum (including info, search, install and update).
It has worked without any problem.

Regarding the FIXME itself, I'm testing the changes, and I expect to send the
patch during this week.

							Javier Palacios

-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-hdr_getitem.patch
Type: application/x-patch
Size: 9307 bytes
Desc: yum-hdr_getitem.patch
Url : http://lists.dulug.duke.edu/pipermail/yum/attachments/20040119/48cdec2e/yum-hdr_getitem.bin

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux