Re: formatting output in rpm-python?
Armijn Hemel <[email protected]> Sat, 17 Jan 2004 18:43:59 +0100
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jan 17, 2004 at 12:22:05PM -0500, seth vidal wrote: [cut] > > > What is the preference for using dsFromHeader() instead of grabbing > > > REQUIRENAME, REQUIREFLAGS and REQUIREVERSION and zipping them together > > > to make, more or less, the same set of things. > > > > > > I guess I'm just trying to figure out which methods are the 'preferred > > > ones' and why they're preferred. > > > > Simply because I didn't know. This is indeed clearer (not that much > > faster though). Now I just have to find out exactly what the numbers in > > the `REQUIREFLAGS' stand for. Anybody a clue about this? > > > > yep. :) > > look at > > http://devel.linux.duke.edu/cgi-bin/viewcvs.cgi/generate/dumpMetadata.py?rev=1.9&cvsroot=metadata&content-type=text/vnd.viewcvs-markup > > class RpmMetaData._correctFlags() > > You only need certain data of the flags. I found that the rpm.RPMSENSE_* constants also do the trick for me... I'll look closer at the code tomorrow, before my brain explodes :) thanks, armijn -- --------------------------------------------------------------------------- [email protected] | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group ---------------------------------------------------------------------------