Bug 1187765

Summary: [RFE] updateinfo.xml parser support
Product: [Fedora] Fedora Reporter: Luke Macken <lmacken>
Component: librepoAssignee: Tomas Mlcoch <tmlcoch>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: ignatenko, pfrields, tmlcoch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-03 05:46:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1156481    

Description Luke Macken 2015-01-30 20:06:24 UTC
In the effort to Port All The Things from yum to dnf/hawkey/librepo, we've hit a roadblock with the `yum.update_md` UpdateMetadata parser. It doesn't seem like there is an easy way to parse this file from the repodata.

http://yum.baseurl.org/gitweb?p=yum.git;a=blob;f=yum/update_md.py

Comment 1 Luke Macken 2015-01-30 20:08:05 UTC
I did stumble upon a python-Updateinfo package that the Scientific Linux folks created for dealing with this file, which has potential: girpm.pbone.net/index.php3/stat/4/idpl/22670939/dir/scientific_linux_6/com/python-Updateinfo-0.1.5-6.5.sl6.noarch.rpm.html (I can't seem to find the upstream repo though...)

Comment 2 Luke Macken 2015-01-30 20:09:03 UTC
(In reply to Luke Macken from comment #1)
> I did stumble upon a python-Updateinfo package that the Scientific Linux
> folks created for dealing with this file, which has potential:

Oops, botched the link. http://rpm.pbone.net/index.php3/stat/4/idpl/22670939/dir/scientific_linux_6/com/python-Updateinfo-0.1.5-6.5.sl6.noarch.rpm.html

Comment 3 Luke Macken 2015-02-03 05:46:32 UTC
Closing, as createrepo_c has support for this: https://github.com/Tojaj/createrepo_c/blob/master/examples/python/updateinfo_parsing.py