#include "system.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 | |
static Header | headerAllocated (Header h) |
static PyObject * | hdrKeyList (hdrObject *s) |
static PyObject * | hdrUnload (hdrObject *s, PyObject *args, PyObject *keywords) |
static PyObject * | hdrExpandFilelist (hdrObject *s) |
static PyObject * | hdrCompressFilelist (hdrObject *s) |
static void | mungeFilelist (Header h) |
static PyObject * | rhnUnload (hdrObject *s) |
static PyObject * | hdrFullFilelist (hdrObject *s) |
static PyObject * | hdrSprintf (hdrObject *s, PyObject *args, PyObject *kwds) |
static int | hdr_compare (hdrObject *a, hdrObject *b) |
static long | hdr_hash (PyObject *h) |
static PyObject * | hdr_getattro (PyObject *o, PyObject *n) |
static int | hdr_setattro (PyObject *o, PyObject *n, PyObject *v) |
static void | hdr_dealloc (hdrObject *s) |
long | tagNumFromPyObject (PyObject *item) |
static PyObject * | hdr_subscript (hdrObject *s, PyObject *item) |
hdrObject * | hdr_Wrap (Header h) |
Header | hdrGetHeader (hdrObject *s) |
PyObject * | hdrLoad (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rhnLoad (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmReadHeaders (FD_t fd) |
PyObject * | rpmHeaderFromFD (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmHeaderFromFile (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 * | rpmMergeHeadersFromFD (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmSingleHeaderFromFD (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | versionCompare (PyObject *self, PyObject *args, PyObject *kwds) |
static int | compare_values (const char *str1, const char *str2) |
PyObject * | labelCompare (PyObject *self, PyObject *args) |
static struct PyMethodDef | hdr_methods [] |
static PyMappingMethods | hdr_as_mapping |
static char | hdr_doc [] |
PyTypeObject | hdr_Type |
Definition in file header-py.c.
|
Definition at line 1046 of file header-py.c. References rpmvercmp(). Referenced by labelCompare(), and rpmds_compare(). |
|
Definition at line 371 of file header-py.c. References hdrObject_s::h, and rpmVersionCompare(). Referenced by versionCompare(). |
|
Definition at line 411 of file header-py.c. |
|
Definition at line 377 of file header-py.c. |
|
Definition at line 417 of file header-py.c. |
|
Definition at line 701 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(), rpmSingleHeaderFromFD(), rpmts_HdrFromFdno(), rpmts_IDTXglob(), and rpmts_IDTXload(). |
|
Definition at line 711 of file header-py.c. References hdrObject_s::h. Referenced by hdr_dsFromHeader(), hdr_dsOfHeader(), hdr_fiFromHeader(), rpmds_init(), rpmfi_init(), and rpmts_AddInstall(). |
|
Definition at line 718 of file header-py.c. References compressFilelist(), hdr_Wrap(), headerAllocated(), headerFree(), headerLoad(), providePackageNVR(), and pyrpmError. |
|
Definition at line 151 of file header-py.c. References headerToken_s::flags, and HEADERFLAG_ALLOCATED. Referenced by hdrLoad(), rhnLoad(), and rhnUnload(). |
|
Definition at line 1057 of file header-py.c. References compare_values(). |
|
Definition at line 755 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. |
|
Definition at line 275 of file header-py.c. References _free(), hdrObject_s::h, headerAddEntry(), headerAllocated(), headerFree(), headerFreeData(), headerGetEntry(), headerIsEntry(), headerLink(), headerLoad(), headerReload(), headerSizeof(), headerUnload(), PGPHASHALGO_SHA1, RPM_STRING_TYPE, RPMDIGEST_NONE, rpmDigestFinal(), rpmDigestInit(), rpmDigestUpdate(), RPMTAG_ARCH, RPMTAG_HEADERIMMUTABLE, RPMTAG_RHNPLATFORM, RPMTAG_SHA1HEADER, and RPMTAG_SHA1RHN. |
|
Definition at line 847 of file header-py.c. References Fclose(), fdDup(), and rpmReadHeaders(). |
|
Definition at line 867 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 894 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(). |
|
Definition at line 953 of file header-py.c. References Fclose(), fdDup(), and rpmMergeHeaders(). |
|
Definition at line 808 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 987 of file header-py.c. References Fclose(), fdDup(), hdr_Wrap(), HEADER_MAGIC_YES, headerFree(), headerRead(), pyrpmError, and SEEK_CUR. |
|
Definition at line 1032 of file header-py.c. References hdr_compare(), and hdr_Type. |
|
Initial value:
""
Definition at line 649 of file header-py.c. |