Re: Rpm 4.2 API (was: Re: New beginnings)
Hunter Matthews <[email protected]> 29 Jan 2003 15:59:16 -0500
| Newsgroups | gmane.network.up2date.current.devel |
|---|---|
| Message-ID | <[email protected]> |
Has the labelCompare() function changed?
Do you see if we use any other rpm functions (they should all be in the
1.4.2 channel.py)
On Wed, 2003-01-29 at 15:21, Jos Vos wrote:
> > I'm not aware of any documentation for the new API.
>
> FWIW, I made small test program on RHL 8.1 beta with its rpm 4.2 API:
>
> ts = rpm.TransactionSet("/", rpm._RPMVSF_NOSIGNATURES)
> fd = os.open(pathname, os.O_RDONLY)
> hdr = ts.hdrFromFdno(fd)
> os.close(fd)
> name = hdr[rpm.RPMTAG_NAME]
> ...
>
> This works fine. The boolean "isSource" that previously was returned
> by rpm.headrFromPackage can now be obtained by accessing
> hdr[rpm.RPMTAG_SOURCEPACKAGE].
>
> --
> -- Jos Vos <[email protected]>
> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
> -- Amsterdam, The Netherlands | Fax: +31 20 6948204
> _______________________________________________
> Current-server mailing list
> [email protected]
> http://lists.dulug.duke.edu/mailman/listinfo/current-server
>
>
--
Hunter Matthews Unix / Network Administrator
Office: BioScience 145/244 Duke Univ. Biology Department
Key: F0F88438 / FFB5 34C0 B350 99A4 BB02 9779 A5DB 8B09 F0F8 8438
Never take candy from strangers. Especially on the internet.