Re: formatting output in rpm-python?
seth vidal <skvidal-c/MNwgJ9CEH2fBVCVOL8/[email protected]> Sat, 17 Jan 2004 11:40:58 -0500
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Message-ID | <1074357658.17373.19.camel@binkley> |
> Right, I found the solution (and the `problem' more or less):
>
> tmp = h.dsFromHeader('requirename')
> for i in tmp:
> print i
>
> gives me tuples like
>
> ('textutils', '', 64)
>
> which is far more usable for me :)
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.
-sv