[Rpm-maint] PATCH: Python: allow access to packages & headers from spec object

James Antill jantill at redhat.com
Thu Sep 18 15:34:10 UTC 2008


On Thu, 2008-09-18 at 16:23 +0100, Daniel P. Berrange wrote:
> I'm trying todo some automated processing & analysis of RPM specfiles
> and have found the python binding is lacking a number of key features
> 
>  - The 'spec' object allows access to the lists of sources, but doesn't
>    expose the RPMBUILD_ISXXXX constants
> 
>  - The 'spec' object does not provide access to the 'packages' objects
>    so you can't query most metadata about the spec.
> 
>  - None of the RPMTAG_XXX constants are defined, which makes using the
>    'header' object unpleasant.

 RPMTAG is already there in the rpm module ... see init_rpm() and search
for TAG.

-- 
James Antill <jantill at redhat.com>
Red Hat



More information about the Rpm-maint mailing list