[Rpm-maint] PATCH: Accessing file and policy lists from python (and C)

Alec Leamas leamas.alec at gmail.com
Sat Sep 15 14:47:31 UTC 2012

When rpm-build parses the specfile, it also parses the file list and 
(nowadays?) also the policy. These are stored in specPackage objects 
attached to the spec. However, these items are not visible on the 
rpm.specPkg interface, neither from C nor from python.

Is there a particular reason these items aren't visible?

I have som pronlems with this related to the fedora-review tool [1], 
which basically forces us to use some hand-crafted specfile parsing , 
since the file lists are needed. I would certainly prefer using rpmlib's 
own parsing for that. However, then external access to the fields 
fileList, fileFile and policyList is needed. The enclosed patch arranges 

Would it be possible to solve the access to the mentioned list, perhaps 
by accepting the patch?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpm-4.9.x-python-filelists.patch
Type: text/x-patch
Size: 3265 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20120915/fb6b39c7/attachment.bin>

More information about the Rpm-maint mailing list