Main Page Modules Data Structures File List Data Fields Globals Related Pages

# PYTHON.

## Files
file | _rpmdb.c
file | hash.c
file | hash.h
file | header-py.c
file | header-py.h
file | rpmal-py.c
file | rpmal-py.h
file | rpmdb-py.c
file | rpmdb-py.h
file | rpmds-py.c
file | rpmds-py.h
file | rpmfd-py.c
file | rpmfd-py.h
file | rpmfi-py.c
file | rpmfi-py.h
file | rpmmi-py.c
file | rpmmi-py.h
file | rpmmodule.c
file | rpmrc-py.c
file | rpmrc-py.h
file | rpmte-py.c
file | rpmte-py.h
file | rpmts-py.c
file | rpmts-py.h
file | upgrade.c
file | upgrade.h
## Data Structures
struct | hdrObject_s
struct | hdrObject_s
class | Rpmdb
| A python rpmdb object represents an RPM database. More...
struct | rpmdbObject_s
class | Rpmfd
| An python rpm.fd object represents an rpm I/O handle. More...
class | Rpmhdr
| A python header object represents an RPM package header. More...
class | Rpmmi
| A python rpm.mi match iterator object represents the result of a database query. More...
struct | rpmmiObject_s
class | Rpmrc
| A python rpm.rc object encapsulates rpmlib configuration. More...
struct | rpmrcObject_s
class | Rpmte
| An python rpm.te object represents an element of a transaction set. More...
class | Rpmts
| A python rpm.ts object represents an RPM transaction set. More...
struct | rpmtsCallbackType_s
## Class: rpm.hdr
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 * | hdrFullFilelist (hdrObject *s, PyObject *args)
PyObject * | hdrSprintf (hdrObject *s, PyObject *args)
PyObject * | hdr_getattr (hdrObject *s, char *name)
void | hdr_dealloc (hdrObject *s)
long | tagNumFromPyObject (PyObject *item)
PyObject * | hdr_subscript (hdrObject *s, PyObject *item)
PyMethodDef | hdr_methods []
PyMappingMethods | hdr_as_mapping
PyTypeObject | hdr_Type
## Class: rpm.db
rpmmiObject * | rpmdb_Match (rpmdbObject *s, PyObject *args)
int | rpmdb_length (rpmdbObject *s)
hdrObject * | rpmdb_subscript (rpmdbObject *s, PyObject *key)
void | rpmdb_dealloc (rpmdbObject *s)
PyObject * | rpmdb_getattr (rpmdbObject *s, char *name)
PyMethodDef | rpmdb_methods []
PyMappingMethods | rpmdb_as_mapping
char | rpmdb_doc []
PyTypeObject | rpmdb_Type
## Class: Rpmmi
PyObject * | rpmmi_iter (rpmmiObject *s)
void | rpmmi_dealloc (rpmmiObject *s)
PyObject * | rpmmi_getattr (rpmmiObject *s, char *name)
PyObject * | rpmmi_iternext (rpmmiObject *s)
PyObject * | rpmmi_Next (rpmmiObject *s, PyObject *args)
PyObject * | rpmmi_Instance (rpmmiObject *s, PyObject *args)
PyObject * | rpmmi_Count (rpmmiObject *s, PyObject *args)
PyObject * | rpmmi_Pattern (rpmmiObject *s, PyObject *args)
rpmmiObject * | rpmmi_Wrap (rpmdbMatchIterator mi)
PyMethodDef | rpmmi_methods []
PyTypeObject | rpmmi_Type
char | rpmmi_doc []
## Module: rpm
PyObject * | archScore (PyObject *self, PyObject *args)
int | psGetArchScore (Header h)
int | pkgCompareVer (void *first, void *second)
void | pkgSort (struct pkgSet *psp)
PyObject * | findUpgradeSet (PyObject *self, PyObject *args)
void | errorcb (void)
PyObject * | errorSetCallback (PyObject *self, PyObject *args)
PyObject * | errorString (PyObject *self, PyObject *args)
PyObject * | setVerbosity (PyObject *self, PyObject *args)
PyObject * | setEpochPromote (PyObject *self, PyObject *args)
void | initrpm (void)
PyObject * | errorCB = NULL
PyObject * | errorData = NULL
PyMethodDef | rpmModuleMethods []
char | rpm__doc__ []
## Class: rpm.rc
PyObject * | rpmrc_AddMacro (PyObject *self, PyObject *args)
PyObject * | rpmrc_DelMacro (PyObject *self, PyObject *args)
PyTypeObject | rpmrc_Type
PyMethodDef | rpmrc_methods []
## Typedefs
typedef hdrObject_s | hdrObject
typedef rpmdbObject_s | rpmdbObject
typedef rpmmiObject_s | rpmmiObject
typedef rpmrcObject_s | rpmrcObject
## Functions
PyObject * | rpmfd_getattr (rpmfdObject *o, char *name)
PyObject * | rpmte_getattr (rpmteObject *o, char *name)
PyObject * | rpmts_Debug (rpmtsObject *s, PyObject *args)
void | rpmtsAddAvailableElement (rpmts ts, Header h, fnpyKey key)
PyObject * | rpmts_AddInstall (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_AddErase (rpmtsObject *s, PyObject *args)
int | rpmts_SolveCallback (rpmts ts, rpmds ds, void *data)
PyObject * | rpmts_Check (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_Order (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_Clean (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_IDTXload (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_IDTXglob (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_Rollback (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_OpenDB (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_CloseDB (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_InitDB (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_RebuildDB (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_VerifyDB (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_HdrFromFdno (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_HdrCheck (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_SetVSFlags (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_PgpPrtPkts (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_PgpImportPubkey (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_GetKeys (rpmtsObject *s, PyObject *args)
void * | rpmtsCallback (const void *hd, const rpmCallbackType what, const unsigned long amount, const unsigned long total, const void *pkgKey, rpmCallbackData data)
PyObject * | rpmts_SetFlags (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_SetProbFilter (rpmtsObject *s, PyObject *args)
PyObject * | rpmts_Run (rpmtsObject *s, PyObject *args)
void | rpmts_dealloc (PyObject *o)
PyObject * | rpmts_getattr (rpmtsObject *o, char *name)
int | rpmts_setattr (rpmtsObject *o, char *name, PyObject *val)
## Variables
PyObject * | pyrpmError
PyMethodDef | rpmfd_methods []
PyTypeObject | rpmfd_Type
PyMethodDef | rpmte_methods []
PyTypeObject | rpmte_Type
PyMethodDef | rpmts_methods []
PyTypeObject | rpmts_Type

## Typedef Documentation

typedef struct hdrObject_s hdrObject

| Definition at line 10 of file header-py.h.

typedef struct rpmdbObject_s rpmdbObject

| Definition at line 12 of file rpmdb-py.h.

typedef struct rpmmiObject_s rpmmiObject

| Definition at line 10 of file rpmmi-py.h.

typedef struct rpmrcObject_s rpmrcObject

| Definition at line 10 of file rpmrc-py.h.

## Function Documentation

PyObject* archScore | ( | PyObject * | self,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 45 of file rpmmodule.c. References RPM_MACHTABLE_INSTARCH, and rpmMachineScore.

void errorcb | ( | void |  | ) | `[static]`

| Definition at line 188 of file rpmmodule.c. References errorCB, and errorData. Referenced by errorSetCallback.

PyObject* errorSetCallback | ( | PyObject * | self,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 207 of file rpmmodule.c. References errorcb, errorCB, and errorData.

PyObject* errorString | ( | PyObject * | self,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 248 of file rpmmodule.c.

PyObject* findUpgradeSet | ( | PyObject * | self,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 131 of file rpmmodule.c. References alloca, packageInfo::data, packageInfo::h, hdrGetHeader, headerGetEntry, packageInfo::name, pkgSet::numPackages, pkgSet::packages, pkgSort, pyrpmError, RPMTAG_NAME, packageInfo::selected, and ugFindUpgradePackages.

void hdr_dealloc | ( | hdrObject * | s | ) | `[static]`

| Definition at line 378 of file header-py.c. References _free, and headerFree.

PyObject* hdr_getattr | ( | hdrObject * | s,
|  | char * | name
| ) | `[static]`

| Definition at line 370 of file header-py.c. References hdr_methods.

PyObject* hdr_subscript | ( | hdrObject * | s,
|  | PyObject * | item
| ) | `[static]`

| Definition at line 408 of file header-py.c. References HEADER_EXT_TAG, headerSprintfExtension_s::name, RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, rpmHeaderGetEntry, RPMTAG_DESCRIPTION, RPMTAG_FILEFLAGS, RPMTAG_FILEGIDS, RPMTAG_FILEGROUPNAME, RPMTAG_FILELINKTOS, RPMTAG_FILEMD5S, RPMTAG_FILEMODES, RPMTAG_FILEMTIMES, RPMTAG_FILERDEVS, RPMTAG_FILESIZES, RPMTAG_FILESTATES, RPMTAG_FILEUIDS, RPMTAG_FILEUSERNAME, RPMTAG_GROUP, RPMTAG_OLDFILENAMES, RPMTAG_ROOT, RPMTAG_SUMMARY, tagNumFromPyObject, headerSprintfExtension_s::type, headerSprintfExtension_s::u, and xstrcasecmp.

PyObject* hdrCompressFilelist | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 195 of file header-py.c. References compressFilelist.

PyObject* hdrExpandFilelist | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 184 of file header-py.c. References expandFilelist.

PyObject* hdrFullFilelist | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 294 of file header-py.c. References mungeFilelist.

PyObject* hdrKeyList | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 115 of file header-py.c. References HEADER_I18NTABLE, headerFreeIterator, headerInitIterator, headerNextIterator, RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_STRING_ARRAY_TYPE, and RPM_STRING_TYPE.

PyObject* hdrSprintf | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 308 of file header-py.c. References _free, errmsg_t, headerSprintf, and pyrpmError.

PyObject* hdrUnload | ( | hdrObject * | s,
|  | PyObject * | args,
|  | PyObject * | keywords
| ) | `[static]`

| Definition at line 149 of file header-py.c. References _free, headerCopy, headerFree, headerLink, headerSizeof, headerUnload, and pyrpmError.

void initrpm | ( | void |  | ) |

| Definition at line 334 of file rpmmodule.c. References _RPMVSF_NODIGESTS, _RPMVSF_NOHEADER, _RPMVSF_NOPAYLOAD, _RPMVSF_NOSIGNATURES, HEADER_EXT_TAG, headerSprintfExtension_s::name, pyrpmError, rpm__doc__, RPMAL_NOMATCH, RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, RPMFILE_CONFIG, RPMFILE_DOC, RPMFILE_GHOST, RPMFILE_LICENSE, RPMFILE_MISSINGOK, RPMFILE_NOREPLACE, RPMFILE_README, RPMFILE_STATE_NETSHARED, RPMFILE_STATE_NORMAL, RPMFILE_STATE_NOTINSTALLED, RPMFILE_STATE_REPLACED, RPMLOG_ALERT, RPMLOG_CRIT, RPMLOG_DEBUG, RPMLOG_EMERG, RPMLOG_ERR, RPMLOG_INFO, RPMLOG_NOTICE, RPMLOG_WARNING, RPMMIRE_DEFAULT, RPMMIRE_GLOB, RPMMIRE_REGEX, RPMMIRE_STRCMP, rpmModuleMethods, RPMPROB_BADARCH, RPMPROB_BADOS, RPMPROB_BADPRETRANS, RPMPROB_BADRELOCATE, RPMPROB_CONFLICT, RPMPROB_DISKNODES, RPMPROB_DISKSPACE, RPMPROB_FILE_CONFLICT, RPMPROB_FILTER_DISKNODES, RPMPROB_FILTER_DISKSPACE, RPMPROB_FILTER_FORCERELOCATE, RPMPROB_FILTER_IGNOREARCH, RPMPROB_FILTER_IGNOREOS, RPMPROB_FILTER_OLDPACKAGE, RPMPROB_FILTER_REPLACENEWFILES, RPMPROB_FILTER_REPLACEOLDFILES, RPMPROB_FILTER_REPLACEPKG, RPMPROB_NEW_FILE_CONFLICT, RPMPROB_OLDPACKAGE, RPMPROB_PKG_INSTALLED, RPMPROB_REQUIRES, rpmReadConfigFiles, RPMSENSE_EQUAL, RPMSENSE_FIND_PROVIDES, RPMSENSE_FIND_REQUIRES, RPMSENSE_GREATER, RPMSENSE_INTERP, RPMSENSE_KEYRING, RPMSENSE_LESS, RPMSENSE_MULTILIB, RPMSENSE_PATCHES, RPMSENSE_PREREQ, RPMSENSE_RPMLIB, RPMSENSE_SCRIPT_BUILD, RPMSENSE_SCRIPT_CLEAN, RPMSENSE_SCRIPT_INSTALL, RPMSENSE_SCRIPT_POST, RPMSENSE_SCRIPT_POSTUN, RPMSENSE_SCRIPT_PRE, RPMSENSE_SCRIPT_PREP, RPMSENSE_SCRIPT_PREUN, RPMSENSE_SCRIPT_VERIFY, RPMSENSE_SERIAL, RPMSENSE_TRIGGERIN, RPMSENSE_TRIGGERPOSTUN, RPMSENSE_TRIGGERPREIN, RPMSENSE_TRIGGERUN, RPMTRANS_FLAG_ADDINDEPS, RPMTRANS_FLAG_ALLFILES, RPMTRANS_FLAG_BUILD_PROBS, RPMTRANS_FLAG_CHAINSAW, RPMTRANS_FLAG_JUSTDB, RPMTRANS_FLAG_KEEPOBSOLETE, RPMTRANS_FLAG_MULTILIB, RPMTRANS_FLAG_NODOCS, RPMTRANS_FLAG_NOMD5, RPMTRANS_FLAG_NOPOST, RPMTRANS_FLAG_NOPOSTUN, RPMTRANS_FLAG_NOPRE, RPMTRANS_FLAG_NOPREUN, RPMTRANS_FLAG_NOSCRIPTS, RPMTRANS_FLAG_NOSUGGEST, RPMTRANS_FLAG_NOTRIGGERIN, RPMTRANS_FLAG_NOTRIGGERPOSTUN, RPMTRANS_FLAG_NOTRIGGERS, RPMTRANS_FLAG_NOTRIGGERUN, RPMTRANS_FLAG_REPACKAGE, RPMTRANS_FLAG_TEST, RPMVSF_DEFAULT, RPMVSF_NEEDPAYLOAD, RPMVSF_NODSA, RPMVSF_NODSAHEADER, RPMVSF_NOHDRCHK, RPMVSF_NOMD5, RPMVSF_NOMD5HEADER, RPMVSF_NORSA, RPMVSF_NORSAHEADER, RPMVSF_NOSHA1, RPMVSF_NOSHA1HEADER, and headerSprintfExtension_s::type.

void mungeFilelist | ( | Header | h | ) | `[static]`

| Definition at line 207 of file header-py.c. References _free, compressFilelist, headerAddEntry, headerIsEntry, RPM_STRING_ARRAY_TYPE, rpmBuildFileList, RPMTAG_BASENAMES, RPMTAG_DIRINDEXES, RPMTAG_DIRNAMES, and RPMTAG_OLDFILENAMES. Referenced by hdrFullFilelist.

int pkgCompareVer | ( | void * | first,
|  | void * | second
| ) | `[static]`

| Definition at line 74 of file rpmmodule.c. References psGetArchScore, rpmVersionCompare, and xstrcasecmp. Referenced by pkgSort.

void pkgSort | ( | struct pkgSet * | psp | ) | `[static]`

| Definition at line 97 of file rpmmodule.c. References packageInfo::name, pkgSet::numPackages, pkgSet::packages, and pkgCompareVer. Referenced by findUpgradeSet.

int psGetArchScore | ( | Header | h | ) | `[static]`

| Definition at line 60 of file rpmmodule.c. References headerGetEntry, RPM_INT8_TYPE, RPM_MACHTABLE_INSTARCH, rpmMachineScore, and RPMTAG_ARCH. Referenced by pkgCompareVer.

void rpmdb_dealloc | ( | rpmdbObject * | s | ) | `[static]`

| Definition at line 206 of file rpmdb-py.c. References rpmdbClose.

PyObject* rpmdb_getattr | ( | rpmdbObject * | s,
|  | char * | name
| ) | `[static]`

| Definition at line 216 of file rpmdb-py.c. References rpmdb_methods.

int rpmdb_length | ( | rpmdbObject * | s | ) | `[static]`

| Definition at line 150 of file rpmdb-py.c. References rpmdbFreeIterator, RPMDBI_PACKAGES, rpmdbInitIterator, and rpmdbNextIterator.

rpmmiObject* rpmdb_Match | ( | rpmdbObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 115 of file rpmdb-py.c. References RPMDBI_PACKAGES, rpmdbInitIterator, rpmmi_Wrap, and tagNumFromPyObject.

hdrObject* rpmdb_subscript | ( | rpmdbObject * | s,
|  | PyObject * | key
| ) | `[static]`

| Definition at line 167 of file rpmdb-py.c. References hdr_Wrap, headerFree, pyrpmError, rpmdbFreeIterator, RPMDBI_PACKAGES, rpmdbInitIterator, and rpmdbNextIterator.

PyObject* rpmfd_getattr | ( | rpmfdObject * | o,
|  | char * | name
| ) | `[static]`

| Definition at line 166 of file rpmfd-py.c. References rpmfd_methods.

PyObject* rpmmi_Count | ( | rpmmiObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 143 of file rpmmi-py.c. References rpmdbGetIteratorCount.

void rpmmi_dealloc | ( | rpmmiObject * | s | ) | `[static]`

| Definition at line 206 of file rpmmi-py.c. References rpmdbFreeIterator.

PyObject* rpmmi_getattr | ( | rpmmiObject * | s,
|  | char * | name
| ) | `[static]`

| Definition at line 217 of file rpmmi-py.c. References rpmmi_methods.

PyObject* rpmmi_Instance | ( | rpmmiObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 125 of file rpmmi-py.c. References rpmdbGetIteratorOffset.

PyObject* rpmmi_iter | ( | rpmmiObject * | s | ) | `[static]`

| Definition at line 78 of file rpmmi-py.c.

PyObject* rpmmi_iternext | ( | rpmmiObject * | s | ) | `[static]`

| Definition at line 88 of file rpmmi-py.c. References hdr_Wrap, rpmdbFreeIterator, and rpmdbNextIterator. Referenced by rpmmi_Next.

PyObject* rpmmi_Next | ( | rpmmiObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 104 of file rpmmi-py.c. References rpmmi_iternext.

PyObject* rpmmi_Pattern | ( | rpmmiObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 161 of file rpmmi-py.c. References rpmdbSetIteratorRE, rpmTag, and tagNumFromPyObject.

rpmmiObject* rpmmi_Wrap | ( | rpmdbMatchIterator | mi | ) |

| Definition at line 279 of file rpmmi-py.c. References rpmmiObject_s::mi, pyrpmError, and rpmmi_Type.

PyObject* rpmrc_AddMacro | ( | PyObject * | self,
|  | PyObject * | args
| ) |

| Definition at line 52 of file rpmrc-py.c. References addMacro.

PyObject* rpmrc_DelMacro | ( | PyObject * | self,
|  | PyObject * | args
| ) |

| Definition at line 67 of file rpmrc-py.c. References delMacro.

PyObject* rpmte_getattr | ( | rpmteObject * | o,
|  | char * | name
| ) | `[static]`

| Definition at line 268 of file rpmte-py.c. References rpmte_methods.

PyObject* rpmts_AddErase | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Todo: Permit finer control (i.e. not just --allmatches) of deleted elments. Definition at line 250 of file rpmts-py.c. References pyrpmError, rpmdbFreeIterator, rpmdbGetIteratorCount, rpmdbGetIteratorOffset, RPMDBI_LABEL, RPMDBI_PACKAGES, rpmdbNextIterator, rpmtsAddEraseElement, rpmtsInitIterator, and uint_32.

PyObject* rpmts_AddInstall | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 204 of file rpmts-py.c. References rpmtsAddAvailableElement, and rpmtsAddInstallElement.

PyObject* rpmts_Check | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 347 of file rpmts-py.c. References rpmtsCallbackType_s::_save, rpmProblem_s::altNEVR, rpmtsCallbackType_s::cb, rpmProblem_s::key, rpmps_s::numProblems, rpmProblem_s::pkgNEVR, rpmps_s::probs, rpmtsCallbackType_s::pythonError, RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, rpmpsFree, RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, rpmts_SolveCallback, rpmtsCheck, rpmtsProblems, rpmtsSetSolveCallback, and rpmtsCallbackType_s::tso.

PyObject* rpmts_Clean | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 479 of file rpmts-py.c. References rpmtsClean.

PyObject* rpmts_CloseDB | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 637 of file rpmts-py.c. References rpmtsCloseDB.

void rpmts_dealloc | ( | PyObject * | o | ) | `[static]`

| Definition at line 1315 of file rpmts-py.c. References Fclose, rpmtsObject_s::keyList, rpmtsFree, rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.

PyObject* rpmts_Debug | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 163 of file rpmts-py.c. References _rpmts_debug.

PyObject* rpmts_getattr | ( | rpmtsObject * | o,
|  | char * | name
| ) | `[static]`

| Definition at line 1333 of file rpmts-py.c. References rpmts_methods.

PyObject* rpmts_GetKeys | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 909 of file rpmts-py.c. References _free, and rpmtsGetKeys.

PyObject* rpmts_HdrCheck | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 771 of file rpmts-py.c. References _free, headerCheck, pyrpmError, rpmRC, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTTRUSTED, and RPMRC_OK.

PyObject* rpmts_HdrFromFdno | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 720 of file rpmts-py.c. References Fclose, fdDup, hdr_Wrap, headerFree, pyrpmError, rpmRC, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, and rpmReadPackageFile.

PyObject* rpmts_IDTXglob | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 538 of file rpmts-py.c. References _free, IDTXfree, IDTXglob, rpmExpand, rpmTag, and RPMTAG_REMOVETID.

PyObject* rpmts_IDTXload | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 497 of file rpmts-py.c. References IDTXfree, IDTXload, rpmTag, and RPMTAG_INSTALLTID.

PyObject* rpmts_InitDB | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 657 of file rpmts-py.c. References rpmtsCloseDB, and rpmtsInitDB.

PyObject* rpmts_OpenDB | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 618 of file rpmts-py.c. References rpmtsOpenDB.

PyObject* rpmts_Order | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 458 of file rpmts-py.c. References rpmtsOrder.

PyObject* rpmts_PgpImportPubkey | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 877 of file rpmts-py.c. References pyrpmError, and rpmcliImportPubkey.

PyObject* rpmts_PgpPrtPkts | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 845 of file rpmts-py.c. References pgpPrtPkts, and pyrpmError.

PyObject* rpmts_RebuildDB | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 678 of file rpmts-py.c. References rpmtsRebuildDB.

PyObject* rpmts_Rollback | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 582 of file rpmts-py.c. References alloca, RPMPROB_FILTER_OLDPACKAGE, rpmRollback, RPMTRANS_FLAG_NOMD5, rpmtransFlags, rpmtsSetFlags, and uint_32.

PyObject* rpmts_Run | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1058 of file rpmts-py.c. References rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, rpmps_s::numProblems, rpmps_s::probs, rpmtsCallbackType_s::pythonError, rpmProblemString, rpmpsFree, rpmtsCallback, rpmtsProblems, rpmtsRun, rpmtsSetNotifyCallback, rpmProblem_s::str1, rpmtsCallbackType_s::tso, rpmProblem_s::type, and rpmProblem_s::ulong1.

int rpmts_setattr | ( | rpmtsObject * | o,
|  | char * | name,
|  | PyObject * | val
| ) | `[static]`

| Definition at line 1341 of file rpmts-py.c. References fdDup, and rpmtsSetScriptFd.

PyObject* rpmts_SetFlags | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1020 of file rpmts-py.c. References rpmtransFlags, and rpmtsSetFlags.

PyObject* rpmts_SetProbFilter | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1037 of file rpmts-py.c. References rpmprobFilterFlags.

PyObject* rpmts_SetVSFlags | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 826 of file rpmts-py.c. References rpmtsSetVSFlags, and rpmVSFlags.

int rpmts_SolveCallback | ( | rpmts | ts,
|  | rpmds | ds,
|  | void * | data
| ) | `[static]`

| Definition at line 310 of file rpmts-py.c. References rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::pythonError, rpmds, rpmdsDNEVR, rpmdsEVR, rpmdsFlags, rpmdsN, rpmts, and rpmtsCallbackType_s::tso. Referenced by rpmts_Check.

PyObject* rpmts_VerifyDB | ( | rpmtsObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 699 of file rpmts-py.c. References rpmtsVerifyDB.

void rpmtsAddAvailableElement | ( | rpmts | ts,
|  | Header | h,
|  | fnpyKey | key
| ) | `[static]`

  | Add package to universe of possible packages to install in transaction set. Parameters:
  ts | transaction set
  h | header
  key | package private data
Definition at line 182 of file rpmts-py.c. References _rpmts_debug, RPMAL_NOMATCH, rpmalAdd, rpmds, rpmdsFree, rpmdsNew, rpmfi, RPMTAG_BASENAMES, RPMTAG_PROVIDENAME, and rpmts. Referenced by rpmts_AddInstall.

void* rpmtsCallback | ( | const void * | hd,
|  | const rpmCallbackType | what,
|  | const unsigned long | amount,
|  | const unsigned long | total,
|  | const void * | pkgKey,
|  | rpmCallbackData | data
| ) | `[static]`

| Definition at line 946 of file rpmts-py.c. References rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, Fclose, fdDup, headerNVR, and rpmtsCallbackType_s::pythonError. Referenced by rpmts_Run.

PyObject* setEpochPromote | ( | PyObject * | self,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 270 of file rpmmodule.c.

PyObject* setVerbosity | ( | PyObject * | self,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 255 of file rpmmodule.c.

long tagNumFromPyObject | ( | PyObject * | item | ) |

| Definition at line 390 of file header-py.c. References xstrcasecmp.

## Variable Documentation

PyObject* errorCB = NULL`[static]`

| Definition at line 183 of file rpmmodule.c. Referenced by errorcb, and errorSetCallback.

PyObject* errorData = NULL`[static]`

| Definition at line 184 of file rpmmodule.c. Referenced by errorcb, and errorSetCallback.

PyMappingMethods hdr_as_mapping`[static]`

| Initial value:
     {
            (inquiry) 0,
            (binaryfunc) hdr_subscript,
            (objobjargproc)0,
    }
Definition at line 568 of file header-py.c.

struct PyMethodDef hdr_methods[]`[static]`

| Initial value:
     {
        {"keys",            (PyCFunction) hdrKeyList,       METH_VARARGS,
            NULL },
        {"unload",          (PyCFunction) hdrUnload,        METH_VARARGS|METH_KEYWORDS,
            NULL },
        {"expandFilelist",  (PyCFunction) hdrExpandFilelist,METH_VARARGS,
            NULL },
        {"compressFilelist",(PyCFunction) hdrCompressFilelist,METH_VARARGS,
            NULL },
        {"fullFilelist",    (PyCFunction) hdrFullFilelist,  METH_VARARGS,
            NULL },
        {"rhnUnload",       (PyCFunction) rhnUnload,        METH_VARARGS,
            NULL },
        {"sprintf",         (PyCFunction) hdrSprintf,       METH_VARARGS,
            NULL },

        {"dsOfHeader",      (PyCFunction)hdr_dsOfHeader,    METH_VARARGS,
            NULL},
        {"dsFromHeader",    (PyCFunction)hdr_dsFromHeader,  METH_VARARGS,
            NULL},
        {"fiFromHeader",    (PyCFunction)hdr_fiFromHeader,  METH_VARARGS,
            NULL},

        {NULL,              NULL}
    }
Definition at line 342 of file header-py.c. Referenced by hdr_getattr.

PyTypeObject hdr_Type

| Definition at line 582 of file header-py.c. Referenced by hdr_Wrap, and versionCompare.

PyObject* pyrpmError

| Definition at line 17 of file header-py.h. Referenced by findUpgradeSet, hdrLoad, hdrSprintf, hdrUnload, initrpm, rhnLoad, rpmdb_subscript, rpmfd_Fopen, rpmHeaderFromFile, rpmMergeHeaders, rpmmi_Wrap, rpmReadHeaders, rpmts_AddErase, rpmts_HdrCheck, rpmts_HdrFromFdno, rpmts_PgpImportPubkey, and rpmts_PgpPrtPkts.

char rpm__doc__[]`[static]`

| Initial value:
    ""
Definition at line 328 of file rpmmodule.c. Referenced by initrpm.

PyMappingMethods rpmdb_as_mapping`[static]`

| Initial value:
     {
            (inquiry) rpmdb_length,
            (binaryfunc) rpmdb_subscript,
            (objobjargproc)0,
    }
Definition at line 198 of file rpmdb-py.c.

char rpmdb_doc[]`[static]`

| Initial value:
    ""
Definition at line 225 of file rpmdb-py.c.

struct PyMethodDef rpmdb_methods[]`[static]`

| Initial value:
     {
        {"match",       (PyCFunction) rpmdb_Match,  METH_VARARGS,
    "db.match([TagN, [key, [len]]]) -> mi\n\
    - Create an rpm db match iterator.\n" },
        {NULL,              NULL}
    }
Definition at line 139 of file rpmdb-py.c. Referenced by rpmdb_getattr.

PyTypeObject rpmdb_Type

| Definition at line 231 of file rpmdb-py.c.

struct PyMethodDef rpmfd_methods[]`[static]`

| Initial value:
     {
        {"Debug",   (PyCFunction)rpmfd_Debug,       METH_VARARGS,
            NULL},
        {"Fopen",   (PyCFunction)rpmfd_Fopen,       METH_VARARGS,
            NULL},
        {NULL,              NULL}
    }
Definition at line 153 of file rpmfd-py.c. Referenced by rpmfd_getattr.

PyTypeObject rpmfd_Type

| Definition at line 181 of file rpmfd-py.c. Referenced by rpmfd_Wrap.

char rpmmi_doc[]`[static]`

| Initial value:
    ""
Definition at line 226 of file rpmmi-py.c.

struct PyMethodDef rpmmi_methods[]`[static]`

| Initial value:
     {
        {"next",        (PyCFunction) rpmmi_Next,           METH_VARARGS,
    "mi.next() -> hdr\n\
    - Retrieve next header that matches. Iterate directly in python if possible.\n" },
        {"instance",    (PyCFunction) rpmmi_Instance,       METH_VARARGS,
            NULL },
        {"count",       (PyCFunction) rpmmi_Count,          METH_VARARGS,
            NULL },
        {"pattern",     (PyCFunction) rpmmi_Pattern,        METH_VARARGS,
    "mi.pattern(TagN, mire_type, pattern)\n\
    - Set a secondary match pattern on tags from retrieved header.\n" },
        {NULL,              NULL}
    }
Definition at line 189 of file rpmmi-py.c. Referenced by rpmmi_getattr.

PyTypeObject rpmmi_Type

| Definition at line 232 of file rpmmi-py.c. Referenced by rpmmi_Wrap.

PyMethodDef rpmModuleMethods[]`[static]`

| Definition at line 280 of file rpmmodule.c. Referenced by initrpm.

struct PyMethodDef rpmrc_methods[]`[static]`

| Initial value:
     {
        { "addMacro",       (PyCFunction) rpmrc_AddMacro, METH_VARARGS,
            NULL },
        { "delMacro",       (PyCFunction) rpmrc_DelMacro, METH_VARARGS,
            NULL },

        {NULL,              NULL}
    }
Definition at line 405 of file rpmrc-py.c.

PyTypeObject rpmrc_Type

| Initial value:
     {
            PyObject_HEAD_INIT(&PyType_Type)
            0,
            "rpm.rc",
            sizeof(rpmrcObject),
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
    }
Definition at line 470 of file rpmrc-py.c.

struct PyMethodDef rpmte_methods[]`[static]`

| Definition at line 219 of file rpmte-py.c. Referenced by rpmte_getattr.

PyTypeObject rpmte_Type

| Definition at line 283 of file rpmte-py.c. Referenced by rpmte_Wrap.

struct PyMethodDef rpmts_methods[]`[static]`

| Definition at line 1232 of file rpmts-py.c. Referenced by rpmts_getattr.

PyTypeObject rpmts_Type

| Definition at line 1372 of file rpmts-py.c. Referenced by rpmts_Create.