[Yum-devel] Small update_md Patch, or Generating Notice XML Programmatically

Mark Rappoport yum-devel at mark.org.il
Sat Jan 23 22:40:35 UTC 2010


Hi,

Looks like our code would highly benefit from UpdateMetadata having an
add_notice() method -- implemented in this small patch (against 3_2_X):
http://pastebin.ca/1763344

On Fri, Jan 22, 2010 at 10:15 PM, Seth Vidal <skvidal at fedoraproject.org>wrote:

>
>
> On Thu, 21 Jan 2010, Mark Rappoport wrote:
>
>
>> Hi,
>> An issue[1] came up on the CentOS-devel list that required us to generate
>> updateinfo.xml files; based on
>> the current code in update_md, we found it much simpler to use
>> UpdateNotice's xml() method to generate
>> these files.
>>
>> However, in it's current form, UpdateNotice does not contain a __setitem__
>> method -- which a tiny patch
>> rectifies (http://pastebin.ca/1760395).
>>
>> Moreover, it would probably be a good idea to add handling of UpdateNotice
>> instance to UpdateMetadata.add
>> -- if desired, I could probably submit a patch for that as well.
>>
>> [1]
>> http://lists.centos.org/pipermail/centos-devel/2010-January/005306.html
>>
>
>
> Added and credited, thanks,
> -sv
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
>


-- 
- Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20100124/f7ac4c37/attachment.htm>


More information about the Yum-devel mailing list