Re: RE: rpmUtils cvs repository

seth vidal <skvidal-c/MNwgJ9CEH2fBVCVOL8/[email protected]> 22 Mar 2004 14:38:07 -0500
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <1079984287.11508.59.camel@opus>
On Mon, 2004-03-22 at 12:18, Adam T. Gautier wrote:
> Looks like a good start! I decided this weekend to start the same 
> process, I will do an initial release later this week.  My only comment 
> on SV's rpmUtils is that it seems to just be a collection of functions.  
> I would like to see (and incidently is the approach that I am taking) a 
> more OO approach.  This is just after a quick glance of SV's rpmUtils 
> and I plan to dive into that code more. 


Well, as I said in the posting this is just a preliminary release of a
conglomeration of stuff. I'd like them to be more python-ic, too.

I'm open to suggestions on the best places to break the classes out.
I've thought about things around the transactionWrapper, as extensions
of the ts object in the normal rpm-python module.

there is some not-so-wonderful code in the oldUtils.py file that has
SOME oo for treating rpm-files and hdrs in reasonably abstracted ways.

Suggestions are very welcome.


>   I think the most important 
> thing after an easy to user rpm-utility module would be to have simple 
> example code for Add, Delete, Signature and Searching of the RPM 
> database.  Also, what would it take to get ANY rpm-utility module added 
> to the rpm-python*.rpm used by distros?

Not sure, I think A LOT of testing and creation of a very serious api
for the module would be helpful for developers but it will take a fair
bit of work to get it to play nice with lots of rpm versions, I think.

-sv