#include "system.h"
#include "Python.h"
#include "rpmio_internal.h"
#include "rpmcli.h"
#include "legacy.h"
#include "misc.h"
#include "header_internal.h"
#include "rpmts.h"
#include "header-py.h"
#include "rpmds-py.h"
#include "rpmfi-py.h"
#include "debug.h"
Go to the source code of this file.
Data Structures | |
struct | hdrObject_s |
Class: rpm.hdr | |
Header | headerAllocated (Header h) |
PyObject * | hdrKeyList (hdrObject *s, PyObject *args) |
PyObject * | hdrUnload (hdrObject *s, PyObject *args, PyObject *keywords) |
PyObject * | hdrExpandFilelist (hdrObject *s, PyObject *args) |
PyObject * | hdrCompressFilelist (hdrObject *s, PyObject *args) |
void | mungeFilelist (Header h) |
PyObject * | rhnUnload (hdrObject *s, PyObject *args) |
PyObject * | hdrFullFilelist (hdrObject *s, PyObject *args) |
PyObject * | hdrSprintf (hdrObject *s, PyObject *args) |
int | hdr_compare (hdrObject *a, hdrObject *b) |
long | hdr_hash (PyObject *h) |
PyObject * | hdr_getattr (hdrObject *s, char *name) |
void | hdr_dealloc (hdrObject *s) |
long | tagNumFromPyObject (PyObject *item) |
PyObject * | hdr_subscript (hdrObject *s, PyObject *item) |
hdrObject * | hdr_Wrap (Header h) |
Header | hdrGetHeader (hdrObject *s) |
PyObject * | hdrLoad (PyObject *self, PyObject *args) |
PyObject * | rhnLoad (PyObject *self, PyObject *args) |
PyObject * | rpmReadHeaders (FD_t fd) |
PyObject * | rpmHeaderFromFD (PyObject *self, PyObject *args) |
PyObject * | rpmHeaderFromFile (PyObject *self, PyObject *args) |
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 * | rpmMergeHeadersFromFD (PyObject *self, PyObject *args) |
PyObject * | versionCompare (PyObject *self, PyObject *args) |
PyObject * | labelCompare (PyObject *self, PyObject *args) |
PyMethodDef | hdr_methods [] |
PyMappingMethods | hdr_as_mapping |
char | hdr_doc [] |
PyTypeObject | hdr_Type |
Definition in file header-py.c.
|
Definition at line 333 of file header-py.c. References hdrObject_s::h, and rpmVersionCompare(). Referenced by versionCompare(). |
|
Definition at line 339 of file header-py.c. |
|
Definition at line 633 of file header-py.c. References hdrObject_s::fileList, hdrObject_s::fileSizes, hdrObject_s::gids, hdrObject_s::h, hdr_Type, 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(), rpmts_HdrFromFdno(), rpmts_IDTXglob(), and rpmts_IDTXload(). |
|
Definition at line 643 of file header-py.c. References hdrObject_s::h. Referenced by hdr_dsFromHeader(), hdr_dsOfHeader(), and hdr_fiFromHeader(). |
|
Definition at line 650 of file header-py.c. References compressFilelist(), hdr_Wrap(), headerAllocated(), headerFree(), headerLoad(), providePackageNVR(), and pyrpmError. |
|
Definition at line 106 of file header-py.c. References headerToken_s::flags, and HEADERFLAG_ALLOCATED. Referenced by hdrLoad(), rhnLoad(), and rhnUnload(). |
|
Definition at line 917 of file header-py.c. References rpmvercmp(). |
|
Definition at line 685 of file header-py.c. References hdr_Wrap(), headerAddEntry(), headerAllocated(), headerFree(), headerGetEntry(), headerIsEntry(), headerLoad(), int_32, pyrpmError, RPMTAG_ARCH, RPMTAG_HEADERIMMUTABLE, RPMTAG_RHNPLATFORM, RPMTAG_SHA1HEADER, and RPMTAG_SHA1RHN. |
|
Definition at line 232 of file header-py.c. References _free(), hdrObject_s::h, headerAddEntry(), headerAllocated(), headerFree(), headerFreeData(), headerGetEntry(), headerIsEntry(), headerLink(), headerLoad(), headerReload(), headerSizeof(), headerUnload(), int_32, PGPHASHALGO_SHA1, RPM_STRING_TYPE, RPMDIGEST_NONE, rpmDigestFinal(), rpmDigestInit(), rpmDigestUpdate(), RPMTAG_ARCH, RPMTAG_HEADERIMMUTABLE, RPMTAG_RHNPLATFORM, RPMTAG_SHA1HEADER, and RPMTAG_SHA1RHN. |
|
Definition at line 775 of file header-py.c. References Fclose(), fdDup(), and rpmReadHeaders(). |
|
Definition at line 792 of file header-py.c. References Fclose(), Fopen(), pyrpmError, and rpmReadHeaders(). |
|
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 816 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(), int_32, hdrObject_s::linkList, hdrObject_s::md5list, and pyrpmError. Referenced by rpmMergeHeadersFromFD(). |
|
Definition at line 874 of file header-py.c. References Fclose(), fdDup(), and rpmMergeHeaders(). |
|
Definition at line 736 of file header-py.c. References compressFilelist(), hdr_Wrap(), HEADER_MAGIC_YES, headerFree(), headerRead(), providePackageNVR(), and pyrpmError. Referenced by rpmHeaderFromFD(), and rpmHeaderFromFile(). |
|
Definition at line 905 of file header-py.c. References hdr_compare(), and hdr_Type. |
|
Initial value:
"" Definition at line 581 of file header-py.c. |