Go to the source code of this file.
Typedefs | |
typedef hdrObject_s | hdrObject |
Functions | |
hdrObject * | hdr_Wrap (Header h) |
Header | hdrGetHeader (hdrObject *h) |
long | tagNumFromPyObject (PyObject *item) |
PyObject * | labelCompare (PyObject *self, PyObject *args) |
PyObject * | versionCompare (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmMergeHeadersFromFD (PyObject *self, PyObject *args, PyObject *kwds) |
int | rpmMergeHeaders (PyObject *list, FD_t fd, int matchTag) |
This assumes the order of list matches the order of the new headers, and throws an exception if that isn't true. | |
PyObject * | rpmHeaderFromFile (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmHeaderFromFD (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmSingleHeaderFromFD (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmReadHeaders (FD_t fd) |
PyObject * | rhnLoad (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | hdrLoad (PyObject *self, PyObject *args, PyObject *kwds) |
Variables | |
PyTypeObject | hdr_Type |
PyObject * | pyrpmError |
Definition in file header-py.h.
Definition at line 703 of file header-py.c.
References hdrObject_s::fileList, hdrObject_s::fileSizes, hdrObject_s::gids, hdrObject_s::h, headerLink(), hdrObject_s::linkList, hdrObject_s::md5list, hdrObject_s::modes, hdrObject_s::mtimes, hdrObject_s::rdevs, and hdrObject_s::uids.
Referenced by hdrLoad(), rhnLoad(), rpmdb_subscript(), rpmmi_iternext(), rpmReadHeaders(), rpmSingleHeaderFromFD(), rpmts_HdrFromFdno(), rpmts_IDTXglob(), and rpmts_IDTXload().
Definition at line 713 of file header-py.c.
References hdrObject_s::h.
Referenced by hdr_dsFromHeader(), hdr_dsOfHeader(), hdr_fiFromHeader(), rpmds_init(), rpmfi_init(), and rpmts_AddInstall().
PyObject* hdrLoad | ( | PyObject * | self, | |
PyObject * | args, | |||
PyObject * | kwds | |||
) |
Definition at line 720 of file header-py.c.
References compressFilelist(), hdr_Wrap(), headerAllocated(), headerFree(), headerLoad(), providePackageNVR(), and pyrpmError.
PyObject* labelCompare | ( | PyObject * | self, | |
PyObject * | args | |||
) |
PyObject* rhnLoad | ( | PyObject * | self, | |
PyObject * | args, | |||
PyObject * | kwds | |||
) |
Definition at line 757 of file header-py.c.
References hdr_Wrap(), headerAddEntry(), headerAllocated(), headerFree(), headerGetEntry(), headerIsEntry(), headerLoad(), pyrpmError, RPMTAG_ARCH, RPMTAG_HEADERIMMUTABLE, RPMTAG_RHNPLATFORM, RPMTAG_SHA1HEADER, and RPMTAG_SHA1RHN.
PyObject* rpmHeaderFromFD | ( | PyObject * | self, | |
PyObject * | args, | |||
PyObject * | kwds | |||
) |
PyObject* rpmHeaderFromFile | ( | PyObject * | self, | |
PyObject * | args, | |||
PyObject * | kwds | |||
) |
Definition at line 869 of file header-py.c.
References Fclose(), Fopen(), pyrpmError, and rpmReadHeaders().
int rpmMergeHeaders | ( | PyObject * | list, | |
FD_t | fd, | |||
int | matchTag | |||
) |
This assumes the order of list matches the order of the new headers, and throws an exception if that isn't true.
Definition at line 896 of file header-py.c.
References _free(), hdrObject_s::fileList, hdrObject_s::h, HEADER_MAGIC_YES, headerAddEntry(), headerFree(), headerFreeData(), headerFreeIterator(), headerGetEntry(), headerInitIterator(), headerNextIterator(), headerRead(), headerRemoveEntry(), hdrObject_s::linkList, hdrObject_s::md5list, pyrpmError, and headerSprintfExtension_s::type.
Referenced by rpmMergeHeadersFromFD().
PyObject* rpmMergeHeadersFromFD | ( | PyObject * | self, | |
PyObject * | args, | |||
PyObject * | kwds | |||
) |
PyObject* rpmReadHeaders | ( | FD_t | fd | ) |
Definition at line 810 of file header-py.c.
References compressFilelist(), hdr_Wrap(), HEADER_MAGIC_YES, headerFree(), headerRead(), providePackageNVR(), and pyrpmError.
Referenced by rpmHeaderFromFD(), and rpmHeaderFromFile().
PyObject* rpmSingleHeaderFromFD | ( | PyObject * | self, | |
PyObject * | args, | |||
PyObject * | kwds | |||
) |
Definition at line 989 of file header-py.c.
References Fclose(), fdDup(), hdr_Wrap(), HEADER_MAGIC_YES, headerFree(), headerRead(), pyrpmError, and SEEK_CUR.
PyObject* versionCompare | ( | PyObject * | self, | |
PyObject * | args, | |||
PyObject * | kwds | |||
) |