rpm
5.4.10
|
#include "system.h"
#include "rpmio_internal.h"
#include <rpmcb.h>
#include "legacy.h"
#include "header_internal.h"
#include "rpmtypes.h"
#include "rpmevr.h"
#include "pkgio.h"
#include "rpmts.h"
#include "rpmcli.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 |
Macros | |
#define | _RPMTAG_INTERNAL |
#define | _RPMEVR_INTERNAL |
Functions | |
static Header | headerAllocated (Header h) |
static PyObject * | hdrIsSource (hdrObject *s) |
static int | hdr_compare (hdrObject *a, hdrObject *b) |
static long | hdr_hash (PyObject *h) |
static void | hdr_dealloc (hdrObject *s) |
rpmTag | tagNumFromPyObject (PyObject *item) |
static PyObject * | hdr_subscript (hdrObject *s, PyObject *item) |
static PyObject * | hdr_getattro (hdrObject *o, PyObject *n) |
static int | hdr_setattro (hdrObject *o, PyObject *n, PyObject *v) |
hdrObject * | hdr_Wrap (Header h) |
Header | hdrGetHeader (hdrObject *s) |
PyObject * | hdrLoad (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) |
PyObject * | rpmSingleHeaderFromFD (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmWriteHeaders (PyObject *list, FD_t fd) |
PyObject * | rpmHeaderToFD (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | rpmHeaderToFile (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | versionCompare (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | labelCompare (PyObject *self, PyObject *args) |
PyObject * | evrCompare (PyObject *self, PyObject *args, PyObject *kwds) |
PyObject * | evrSplit (PyObject *self, PyObject *args, PyObject *kwds) |
Class: Rpmhdr | |
static PyObject * | hdrKeyList (hdrObject *s) |
static PyObject * | hdrUnload (hdrObject *s, PyObject *args, PyObject *keywords) |
static PyObject * | hdrGetOrigin (hdrObject *s) |
static PyObject * | hdrSetOrigin (hdrObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | hdrSprintf (hdrObject *s, PyObject *args, PyObject *kwds) |
Variables | |
static struct PyMethodDef | hdr_methods [] |
static PyMappingMethods | hdr_as_mapping |
static char | hdr_doc [] |
PyTypeObject | hdr_Type |
#define _RPMEVR_INTERNAL |
Definition at line 14 of file header-py.c.
#define _RPMTAG_INTERNAL |
Definition at line 11 of file header-py.c.
PyObject* evrCompare | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 1021 of file header-py.c.
References rpmEVRcompare(), rpmEVRfree(), rpmEVRnew(), rpmEVRparse(), and RPMSENSE_EQUAL.
PyObject* evrSplit | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 1042 of file header-py.c.
References rpmEVRfree(), rpmEVRnew(), rpmEVRparse(), and RPMSENSE_EQUAL.
Definition at line 341 of file header-py.c.
References hdrObject_s::h, and rpmVersionCompare().
Referenced by versionCompare().
|
static |
Definition at line 354 of file header-py.c.
References hdrObject_s::h, and headerFree().
|
static |
Definition at line 612 of file header-py.c.
References hdr_subscript().
|
static |
Definition at line 347 of file header-py.c.
References hdrObject_s::h.
|
static |
Definition at line 622 of file header-py.c.
|
static |
Definition at line 379 of file header-py.c.
References _free(), alloca(), rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, hdrObject_s::h, headerGet(), _HE_s::p, rpmDataType_u::ptr, RPM_BIN_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, RPM_UINT16_TYPE, RPM_UINT32_TYPE, RPM_UINT64_TYPE, RPM_UINT8_TYPE, rpmHeaderFormats, RPMTAG_ARCH, RPMTAG_CHANGELOGTIME, RPMTAG_CONFLICTFLAGS, RPMTAG_CONFLICTNAME, RPMTAG_CONFLICTVERSION, RPMTAG_DISTEPOCH, RPMTAG_EPOCH, RPMTAG_FILEFLAGS, RPMTAG_FILEGIDS, RPMTAG_FILEGROUPNAME, RPMTAG_FILELINKTOS, RPMTAG_FILEMD5S, RPMTAG_FILEMODES, RPMTAG_FILEMTIMES, RPMTAG_FILEPATHS, RPMTAG_FILERDEVS, RPMTAG_FILESIZES, RPMTAG_FILESTATES, RPMTAG_FILEUIDS, RPMTAG_FILEUSERNAME, RPMTAG_FILEVERIFYFLAGS, RPMTAG_NAME, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEVERSION, RPMTAG_OLDFILENAMES, RPMTAG_ORIGPATHS, RPMTAG_OS, RPMTAG_PROVIDEFLAGS, RPMTAG_PROVIDENAME, RPMTAG_PROVIDEVERSION, RPMTAG_RELEASE, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIRENAME, RPMTAG_REQUIREVERSION, RPMTAG_ROOT, RPMTAG_VERSION, rpmDataType_u::str, _HE_s::t, _HE_s::tag, tagNumFromPyObject(), rpmDataType_u::ui16p, rpmDataType_u::ui32p, rpmDataType_u::ui64p, rpmDataType_u::ui8p, and xstrcasecmp().
Referenced by hdr_getattro().
Definition at line 682 of file header-py.c.
References hdrObject_s::h, hdr_Type, and headerLink().
Referenced by hdrLoad(), rpmdb_subscript(), rpmmi_iternext(), rpmReadHeaders(), rpmSingleHeaderFromFD(), rpmts_HdrFromFdno(), rpmts_IDTXglob(), and rpmts_IDTXload().
Definition at line 689 of file header-py.c.
References hdrObject_s::h.
Referenced by hdr_dsFromHeader(), hdr_dsOfHeader(), hdr_fiFromHeader(), rpmds_init(), rpmfi_init(), and rpmts_AddInstall().
|
static |
Definition at line 253 of file header-py.c.
References hdrObject_s::h, and headerGetOrigin().
|
static |
Definition at line 152 of file header-py.c.
References hdrObject_s::h, headerIsEntry(), and RPMTAG_SOURCERPM.
|
static |
Definition at line 165 of file header-py.c.
References _free(), alloca(), hdrObject_s::h, HEADER_I18NTABLE, headerFini(), headerInit(), headerNext(), _HE_s::p, rpmDataType_u::ptr, RPM_BIN_TYPE, RPM_I18NSTRING_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, RPM_UINT16_TYPE, RPM_UINT32_TYPE, RPM_UINT64_TYPE, RPM_UINT8_TYPE, _HE_s::t, and _HE_s::tag.
PyObject* hdrLoad | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 696 of file header-py.c.
References hdrObject_s::h, hdr_Wrap(), headerAllocated(), headerFree(), headerLoad(), and pyrpmError.
|
static |
Definition at line 268 of file header-py.c.
References hdrObject_s::h, and headerSetOrigin().
|
static |
Definition at line 286 of file header-py.c.
References _free(), hdrObject_s::h, headerSprintf(), pyrpmError, and rpmHeaderFormats.
|
static |
Definition at line 212 of file header-py.c.
References _free(), hdrObject_s::h, headerCopy(), headerFree(), headerLink(), headerUnload(), and pyrpmError.
Definition at line 145 of file header-py.c.
References headerToken_s::flags, and HEADERFLAG_ALLOCATED.
Referenced by hdrLoad().
PyObject* labelCompare | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 985 of file header-py.c.
References rpmEVRcompare(), rpmEVRfree(), rpmEVRnew(), and RPMSENSE_EQUAL.
PyObject* rpmHeaderFromFD | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 793 of file header-py.c.
References Fclose(), fdDup(), and rpmReadHeaders().
PyObject* rpmHeaderFromFile | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 814 of file header-py.c.
References Fclose(), Fopen(), pyrpmError, and rpmReadHeaders().
PyObject* rpmHeaderToFD | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 924 of file header-py.c.
References Fclose(), fdDup(), and rpmWriteHeaders().
PyObject* rpmHeaderToFile | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 946 of file header-py.c.
References Fclose(), Fopen(), pyrpmError, and rpmWriteHeaders().
PyObject* rpmReadHeaders | ( | FD_t | fd | ) |
Definition at line 732 of file header-py.c.
References _free(), hdrObject_s::h, hdr_Wrap(), headerFree(), pyrpmError, rpmlog(), RPMLOG_ERR, rpmpkgRead(), RPMRC_NOTFOUND, and RPMRC_OK.
Referenced by rpmHeaderFromFD(), and rpmHeaderFromFile().
PyObject* rpmSingleHeaderFromFD | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 841 of file header-py.c.
References _free(), Fclose(), fdDup(), hdrObject_s::h, hdr_Wrap(), headerFree(), pyrpmError, rpmlog(), RPMLOG_ERR, rpmpkgRead(), RPMRC_NOTFOUND, RPMRC_OK, and SEEK_CUR.
PyObject* rpmWriteHeaders | ( | PyObject * | list, |
FD_t | fd | ||
) |
Definition at line 898 of file header-py.c.
References _free(), hdrObject_s::h, pyrpmError, rpmlog(), RPMLOG_ERR, rpmpkgWrite(), and RPMRC_OK.
Referenced by rpmHeaderToFD(), and rpmHeaderToFile().
rpmTag tagNumFromPyObject | ( | PyObject * | item | ) |
Definition at line 364 of file header-py.c.
References tagValue().
Referenced by hdr_dsFromHeader(), hdr_fiFromHeader(), hdr_subscript(), rpmdb_Match(), rpmds_init(), rpmds_Single(), rpmfi_init(), rpmmi_Pattern(), rpmte_DS(), rpmte_FI(), and rpmts_Match().
PyObject* versionCompare | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 972 of file header-py.c.
References hdr_compare(), and hdr_Type.
|
static |
Definition at line 606 of file header-py.c.
|
static |
Definition at line 630 of file header-py.c.
|
static |
Definition at line 315 of file header-py.c.
PyTypeObject hdr_Type |
Definition at line 636 of file header-py.c.
Referenced by hdr_Wrap(), init_rpm(), rpmds_init(), rpmfi_init(), rpmts_AddInstall(), and versionCompare().