Re: rpm-python module

Paul Nasrat <pauln-xGvoirzvwgBWk0Htik3J/[email protected]> Wed, 25 Aug 2004 18:08:49 +0000
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <[email protected]>
On Wed, Aug 25, 2004 at 05:16:06PM +0300, A. Murat Eren wrote:
> 
>  Hi,
> 
> On Tuesday 24 August 2004 16:47, Wichmann, Mats D wrote:
> > You'll have to build it yourself, it's not built/packaged
> > for Debian - but it's not terribly hard to rebuild rpm on
> > Debian.
> 
>  The problem and my question wasn't to build them. It was just about fetching 
> data from RPMs..
> 
>  Yes that was difficult -a little bit-, we wrote a php extension for it 
> instead of trying to use python via CGI for our web application. We parsed 
> cpio to fetch the header info from it, so we could handle files those a part 
> of rpm by that header information (offset, file len, user, group vs.). Now 
> everything is fine, thanks for all answers.
> 

I know pzb has a pure php rpm parsing implementation for producing deltas - I don't know if that would be useful to you

http://primates.ximian.com/~pzb/rpmdelta-0.0.3.tar.gz

>  Now we have a php extension lib, rpm.so, which is providing some rpm 
> functions like rpm_open(RPM_URL), rpm_file_list(RPM_FD), 
> rpm_get_attr(RPMTAG), rpm_fetch_file(FILENAME) etc. We will publish that 
> little extension ASAP..

I assume from the.so extension you are using rpmlib?

Please publish your module and announce on here or rpm-list please.

Paul