Re: rpm-python module

"A. Murat Eren" <[email protected]> Wed, 25 Aug 2004 17:16:06 +0300
Newsgroups gmane.linux.redhat.rpm.python
Organization COMU
Message-ID <[email protected]>
 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.

 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..

 BTW, no problem occured directly because of the Debian..

> rpm support on Debian is very limited anyway, anything
> that involves querying an rpmdb is disabled.  In fact,
> "rpm" on Debian is essentially rpmbuild - and the package
> is marked as orphaned, which means it no longer has a
> maintainer.  I am partly responsible for this, I've
> asked the maintainer several rpm questions (including
> asking for rpm-python, I wanted to have a Debian server
> be able to host a yum repository made up of rpm packages
> pushed up by an assortment of build machines), which led
> him to look into upgrading rpm to a newer version - and
> decide instead to drop it, ostensibly because a new
> component has a license that conflicts with the Debian
> guidelines.
>
> You won't be happy using Debian to work with rpm packages
> if you're going to depend on "official" Debian packages
> to do it.

 I think i couldn't explain myself and my aim yesterday, never mind, thanks :)


 Ciao, M.
-- 


- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
 A. Murat Eren
 [email protected], [email protected]
 http://cekirdek.uludag.org.tr/~meren/
 0x88FD9FC7, 
 910A FCB3 2AAB 4CA5 E4D9 EFFA 6555 A33A 88FD 9FC7
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -

--
 free software is a matter of liberty,
 not price. to understand the concept,
 you should think of "free speech",
 not "free beer".
-