rpmUtils module

seth vidal <skvidal-c/MNwgJ9CEH2fBVCVOL8/[email protected]> Fri, 13 Feb 2004 04:27:09 -0500
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <1076664429.7721.61.camel@binkley>
I've been doing some work on this rpmUtils module as a part of the work
I'm doing on yum.

So far I've thefted some functions from yum, rhpl and up2date and
modified them a bit to make them less yum or up2date specific.

stuff that is in there so far:
arch.py from rhpl (it fits better in here than in rhpl, imo)
transaction.py from up2date
getSigInfo(), checkSig(), compareEVR(), rpmOutToStr() from rpmUtils.py
in yum

Along with a simple class to hold nevra information from the rpmdb with
some normal, useful queries.

I'm still trying to figure out how best organize it.

I was thinking of having
packages.py <- classes and methods dealing with manipulating/checking/ 
               opening packages/headers
transactions.py <- ts handling
miscutils.py <- misc stuff that is handy to have around
                (a fast unique function, for example)
updateshandling.py <- class that will spit back what updates/obsoletes 
                      what given some relatively simple inputs
__init__.py - rpmdb holder class, default exception for the class


So:
 1. thoughts on better ways to organize this stuff
 2. thoughts on things that would be useful here?

comments welcome
-sv