PYTHON-C Language Bindings.


Files

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  rpmfts-py.c
file  rpmfts-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

Data Structures

struct  hdrObject_s
struct  rpmdbObject_s
struct  rpmmiObject_s
struct  rpmrcObject_s
struct  rpmtsCallbackType_s

Class: rpm.hdr

static struct PyMethodDef hdr_methods []
static PyMappingMethods hdr_as_mapping
PyTypeObject hdr_Type
static char hdr_doc []
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 * hdrFullFilelist (hdrObject *s)
static PyObject * hdrSprintf (hdrObject *s, PyObject *args, PyObject *kwds)
static void hdr_dealloc (hdrObject *s)
long tagNumFromPyObject (PyObject *item)
static PyObject * hdr_subscript (hdrObject *s, PyObject *item)
static Header headerAllocated (Header h)
static PyObject * rhnUnload (hdrObject *s)
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)
hdrObjecthdr_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)

Class: Rpmfd

static struct PyMethodDef rpmfd_methods []
PyTypeObject rpmfd_Type
static void rpmfd_dealloc (rpmfdObject *s)
static int rpmfd_init (rpmfdObject *s, PyObject *args, PyObject *kwds)
static void rpmfd_free (rpmfdObject *s)
static PyObject * rpmfd_alloc (PyTypeObject *subtype, int nitems)
static rpmfdObjectrpmfd_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)

Class: Rpmfts

static struct PyMethodDef rpmfts_methods []
PyTypeObject rpmfts_Type
static PyMemberDef rpmfts_members []
static char rpmfts_doc []
static PyObject * rpmfts_Debug (rpmftsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmfts_Open (rpmftsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmfts_Read (rpmftsObject *s)
static PyObject * rpmfts_Children (rpmftsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmfts_Close (rpmftsObject *s)
static PyObject * rpmfts_Set (rpmftsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmfts_getattro (PyObject *o, PyObject *n)
static int rpmfts_setattro (PyObject *o, PyObject *n, PyObject *v)
static PyObject * rpmfts_iter (rpmftsObject *s)
static PyObject * rpmfts_iternext (rpmftsObject *s)
static void rpmfts_free (PyObject *s)
static PyObject * rpmfts_alloc (PyTypeObject *type, int nitems)
static void rpmfts_dealloc (rpmftsObject *s)
static int rpmfts_init (rpmftsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmfts_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
static int rpmfts_traverse (rpmftsObject *s, visitproc visit, void *arg)
static int rpmfts_print (rpmftsObject *s, FILE *fp, int flags)

Class: Rpmmi

static struct PyMethodDef rpmmi_methods []
PyTypeObject rpmmi_Type
static char rpmmi_doc []
static void rpmmi_dealloc (rpmmiObject *s)
static PyObject * rpmmi_iter (rpmmiObject *s)
static PyObject * rpmmi_iternext (rpmmiObject *s)
static PyObject * rpmmi_Next (rpmmiObject *s)
static PyObject * rpmmi_Instance (rpmmiObject *s)
static PyObject * rpmmi_Count (rpmmiObject *s)
static PyObject * rpmmi_Pattern (rpmmiObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmmi_getattro (PyObject *o, PyObject *n)
static int rpmmi_setattro (PyObject *o, PyObject *n, PyObject *v)
rpmmiObjectrpmmi_Wrap (rpmdbMatchIterator mi, PyObject *s)

Class: rpm.rc

PyTypeObject rpmrc_Type

Class: Rpmte

static struct PyMethodDef rpmte_methods []
PyTypeObject rpmte_Type
static char rpmte_doc []
static PyObject * rpmte_Debug (rpmteObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmte_TEType (rpmteObject *s)
static PyObject * rpmte_N (rpmteObject *s)
static PyObject * rpmte_E (rpmteObject *s)
static PyObject * rpmte_V (rpmteObject *s)
static PyObject * rpmte_R (rpmteObject *s)
static PyObject * rpmte_A (rpmteObject *s)
static PyObject * rpmte_O (rpmteObject *s)
static PyObject * rpmte_NEVR (rpmteObject *s)
static PyObject * rpmte_Color (rpmteObject *s)
static PyObject * rpmte_PkgFileSize (rpmteObject *s)
static PyObject * rpmte_Depth (rpmteObject *s)
static PyObject * rpmte_Npreds (rpmteObject *s)
static PyObject * rpmte_Degree (rpmteObject *s)
static PyObject * rpmte_Parent (rpmteObject *s)
static PyObject * rpmte_Tree (rpmteObject *s)
static PyObject * rpmte_AddedKey (rpmteObject *s)
static PyObject * rpmte_DependsOnKey (rpmteObject *s)
static PyObject * rpmte_DBOffset (rpmteObject *s)
static PyObject * rpmte_Key (rpmteObject *s)
static PyObject * rpmte_DS (rpmteObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmte_FI (rpmteObject *s, PyObject *args, PyObject *kwds)
static int rpmte_print (rpmteObject *s, FILE *fp, int flags)
static PyObject * rpmte_getattro (PyObject *o, PyObject *n)
static int rpmte_setattro (PyObject *o, PyObject *n, PyObject *v)
rpmteObjectrpmte_Wrap (rpmte te)

Class: Rpmts

static struct PyMethodDef rpmts_methods []
PyTypeObject rpmts_Type
static char rpmts_doc []
static PyObject * rpmts_Debug (rpmtsObject *s, PyObject *args, PyObject *kwds)
static void rpmtsAddAvailableElement (rpmts ts, Header h, fnpyKey key)
 Add package to universe of possible packages to install in transaction set.
static PyObject * rpmts_AddInstall (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_AddErase (rpmtsObject *s, PyObject *args, PyObject *kwds)
static int rpmts_SolveCallback (rpmts ts, rpmds ds, const void *data)
static PyObject * rpmts_Check (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_Order (rpmtsObject *s)
static PyObject * rpmts_Clean (rpmtsObject *s)
static PyObject * rpmts_IDTXload (rpmtsObject *s)
static PyObject * rpmts_IDTXglob (rpmtsObject *s)
static PyObject * rpmts_Rollback (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_OpenDB (rpmtsObject *s)
static PyObject * rpmts_CloseDB (rpmtsObject *s)
static PyObject * rpmts_InitDB (rpmtsObject *s)
static PyObject * rpmts_RebuildDB (rpmtsObject *s)
static PyObject * rpmts_VerifyDB (rpmtsObject *s)
static PyObject * rpmts_HdrFromFdno (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_HdrCheck (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_SetVSFlags (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_SetColor (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_PgpPrtPkts (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_PgpImportPubkey (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_GetKeys (rpmtsObject *s)
static void * rpmtsCallback (const void *hd, const rpmCallbackType what, const unsigned long amount, const unsigned long total, const void *pkgKey, rpmCallbackData data)
static PyObject * rpmts_SetFlags (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_SetProbFilter (rpmtsObject *s, PyObject *args, PyObject *kwds)
static rpmpsObject * rpmts_Problems (rpmtsObject *s)
static PyObject * rpmts_Run (rpmtsObject *s, PyObject *args, PyObject *kwds)
static void rpmts_dealloc (rpmtsObject *s)
static int rpmts_setattro (PyObject *o, PyObject *n, PyObject *v)
static int rpmts_init (rpmtsObject *s, PyObject *args, PyObject *kwds)
static void rpmts_free (rpmtsObject *s)
static PyObject * rpmts_alloc (PyTypeObject *subtype, int nitems)
static PyObject * rpmts_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
static PyObject * rpmts_iternext (rpmtsObject *s)
static PyObject * rpmts_Next (rpmtsObject *s)
static specObject * spec_Parse (rpmtsObject *s, PyObject *args, PyObject *kwds)
static rpmmiObjectrpmts_Match (rpmtsObject *s, PyObject *args, PyObject *kwds)
static PyObject * rpmts_getattro (PyObject *o, PyObject *n)
rpmtsObjectrpmts_Create (PyObject *self, PyObject *args, PyObject *kwds)

Module: rpm

static PyMethodDef rpmModuleMethods []
static char rpm__doc__ []
static PyObject * expandMacro (PyObject *self, PyObject *args, PyObject *kwds)
static PyObject * archScore (PyObject *self, PyObject *args, PyObject *kwds)
static PyObject * signalsCaught (PyObject *self, PyObject *check)
static PyObject * checkSignals (PyObject *self, PyObject *args)
static PyObject * setLogFile (PyObject *self, PyObject *args, PyObject *kwds)
static PyObject * setVerbosity (PyObject *self, PyObject *args, PyObject *kwds)
static PyObject * setEpochPromote (PyObject *self, PyObject *args, PyObject *kwds)
static PyObject * setStats (PyObject *self, PyObject *args, PyObject *kwds)
static void rpm_exithook (void)
void init_rpm (void)

Typedefs

typedef hdrObject_s hdrObject
typedef rpmdbObject_s rpmdbObject
typedef rpmmiObject_s rpmmiObject
typedef rpmrcObject_s rpmrcObject

Functions

static int rpmds_init (rpmdsObject *s, PyObject *args, PyObject *kwds)
static void rpmds_free (rpmdsObject *s)
static PyObject * rpmds_alloc (PyTypeObject *subtype, int nitems)
static PyObject * rpmds_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
static int rpmfi_init (rpmfiObject *s, PyObject *args, PyObject *kwds)
static void rpmfi_free (rpmfiObject *s)
static PyObject * rpmfi_alloc (PyTypeObject *subtype, int nitems)
static PyObject * rpmfi_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)

Variables

PyObject * pyrpmError

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

static PyObject* archScore ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 59 of file rpmmodule.c.

References RPM_MACHTABLE_INSTARCH, and rpmMachineScore().

Referenced by archFilter().

static PyObject* checkSignals ( PyObject *  self,
PyObject *  args 
) [static]

Definition at line 108 of file rpmmodule.c.

References rpmdbCheckSignals().

static int compare_values ( const char *  str1,
const char *  str2 
) [static]

Definition at line 1048 of file header-py.c.

References rpmvercmp().

Referenced by labelCompare(), and rpmds_compare().

static PyObject* expandMacro ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 47 of file rpmmodule.c.

References rpmExpand().

static int hdr_compare ( hdrObject a,
hdrObject b 
) [static]

Definition at line 371 of file header-py.c.

References hdrObject_s::h, and rpmVersionCompare().

Referenced by versionCompare().

static void hdr_dealloc ( hdrObject s  )  [static]

Definition at line 426 of file header-py.c.

References _free(), hdrObject_s::fileList, hdrObject_s::h, headerFree(), hdrObject_s::linkList, and hdrObject_s::md5list.

static PyObject* hdr_getattro ( PyObject *  o,
PyObject *  n 
) [static]

Definition at line 411 of file header-py.c.

static long hdr_hash ( PyObject *  h  )  [static]

Definition at line 377 of file header-py.c.

static int hdr_setattro ( PyObject *  o,
PyObject *  n,
PyObject *  v 
) [static]

Definition at line 417 of file header-py.c.

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

Definition at line 456 of file header-py.c.

References ext, hdrObject_s::h, 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, rpmHeaderFormats, rpmHeaderGetEntry(), RPMTAG_ARCH, RPMTAG_CHANGELOGTIME, RPMTAG_CONFLICTFLAGS, RPMTAG_CONFLICTNAME, RPMTAG_CONFLICTVERSION, RPMTAG_DESCRIPTION, RPMTAG_EPOCH, 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_FILEVERIFYFLAGS, RPMTAG_GROUP, RPMTAG_NAME, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEVERSION, RPMTAG_OLDFILENAMES, RPMTAG_OS, RPMTAG_PROVIDEFLAGS, RPMTAG_PROVIDENAME, RPMTAG_PROVIDEVERSION, RPMTAG_RELEASE, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIRENAME, RPMTAG_REQUIREVERSION, RPMTAG_ROOT, RPMTAG_SUMMARY, RPMTAG_VERSION, tagNumFromPyObject(), headerSprintfExtension_s::type, and xstrcasecmp().

hdrObject* hdr_Wrap ( Header  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().

static PyObject* hdrCompressFilelist ( hdrObject s  )  [static]

Definition at line 238 of file header-py.c.

References compressFilelist(), and hdrObject_s::h.

static PyObject* hdrExpandFilelist ( hdrObject s  )  [static]

Definition at line 227 of file header-py.c.

References expandFilelist(), and hdrObject_s::h.

static PyObject* hdrFullFilelist ( hdrObject s  )  [static]

Definition at line 334 of file header-py.c.

References hdrObject_s::h, and mungeFilelist().

Header hdrGetHeader ( hdrObject s  ) 

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().

static PyObject* hdrKeyList ( hdrObject s  )  [static]

Definition at line 160 of file header-py.c.

References hdrObject_s::h, 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* 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.

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

Definition at line 345 of file header-py.c.

References _free(), hdrObject_s::h, headerSprintf(), pyrpmError, rpmHeaderFormats, and rpmTagTable.

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

Definition at line 192 of file header-py.c.

References _free(), hdrObject_s::h, headerCopy(), headerFree(), headerLink(), headerSizeof(), headerUnload(), and pyrpmError.

static Header headerAllocated ( Header  h  )  [inline, static]

Definition at line 151 of file header-py.c.

References headerToken_s::flags, and HEADERFLAG_ALLOCATED.

Referenced by hdrLoad(), rhnLoad(), and rhnUnload().

void init_rpm ( void   ) 

Definition at line 262 of file rpmmodule.c.

References _RPMVSF_NODIGESTS, _RPMVSF_NOHEADER, _RPMVSF_NOPAYLOAD, _RPMVSF_NOSIGNATURES, ext, hdr_Type, HEADER_EXT_TAG, headerSprintfExtension_s::name, pyrpmError, REGISTER_ENUM, rpm_exithook(), RPMAL_NOMATCH, rpmal_Type, RPMCALLBACK_CPIO_ERROR, RPMCALLBACK_INST_CLOSE_FILE, RPMCALLBACK_INST_OPEN_FILE, RPMCALLBACK_INST_PROGRESS, RPMCALLBACK_INST_START, RPMCALLBACK_REPACKAGE_PROGRESS, RPMCALLBACK_REPACKAGE_START, RPMCALLBACK_REPACKAGE_STOP, RPMCALLBACK_TRANS_PROGRESS, RPMCALLBACK_TRANS_START, RPMCALLBACK_TRANS_STOP, RPMCALLBACK_UNINST_PROGRESS, RPMCALLBACK_UNINST_START, RPMCALLBACK_UNINST_STOP, RPMCALLBACK_UNKNOWN, RPMCALLBACK_UNPACK_ERROR, RPMDBI_PACKAGES, RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, rpmds_Type, rpmfd_Type, rpmfi_Type, RPMFILE_CONFIG, RPMFILE_DOC, RPMFILE_EXCLUDE, RPMFILE_GHOST, RPMFILE_ICON, RPMFILE_LICENSE, RPMFILE_MISSINGOK, RPMFILE_NOREPLACE, RPMFILE_PUBKEY, RPMFILE_README, RPMFILE_STATE_NETSHARED, RPMFILE_STATE_NORMAL, RPMFILE_STATE_NOTINSTALLED, RPMFILE_STATE_REPLACED, RPMFILE_STATE_WRONGCOLOR, RPMFILE_UNPATCHED, rpmfts_Type, rpmHeaderFormats, RPMLOG_ALERT, RPMLOG_CRIT, RPMLOG_DEBUG, RPMLOG_EMERG, RPMLOG_ERR, RPMLOG_INFO, RPMLOG_NOTICE, RPMLOG_WARNING, rpmmi_Type, 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, rpmrc_Type, rpmReadConfigFiles(), RPMSENSE_CONFIG, RPMSENSE_EQUAL, RPMSENSE_FIND_PROVIDES, RPMSENSE_FIND_REQUIRES, RPMSENSE_GREATER, RPMSENSE_INTERP, RPMSENSE_KEYRING, RPMSENSE_LESS, 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, rpmTagTable, rpmTagTableSize, rpmte_Type, RPMTRANS_FLAG_ADDINDEPS, RPMTRANS_FLAG_ALLFILES, RPMTRANS_FLAG_ANACONDA, RPMTRANS_FLAG_BUILD_PROBS, RPMTRANS_FLAG_JUSTDB, RPMTRANS_FLAG_KEEPOBSOLETE, RPMTRANS_FLAG_NOCONFIGS, 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_NOTRIGGERPREIN, RPMTRANS_FLAG_NOTRIGGERS, RPMTRANS_FLAG_NOTRIGGERUN, RPMTRANS_FLAG_REPACKAGE, RPMTRANS_FLAG_REVERSE, RPMTRANS_FLAG_TEST, rpmts_Type, RPMVSF_DEFAULT, RPMVSF_NEEDPAYLOAD, RPMVSF_NODSA, RPMVSF_NODSAHEADER, RPMVSF_NOHDRCHK, RPMVSF_NOMD5, RPMVSF_NOMD5HEADER, RPMVSF_NORSA, RPMVSF_NORSAHEADER, RPMVSF_NOSHA1, RPMVSF_NOSHA1HEADER, TR_ADDED, TR_REMOVED, headerSprintfExtension_s::type, VERIFY_DIGEST, and VERIFY_SIGNATURE.

PyObject* labelCompare ( PyObject *  self,
PyObject *  args 
)

Definition at line 1059 of file header-py.c.

References compare_values().

static void mungeFilelist ( Header  h  )  [static]

Definition at line 250 of file header-py.c.

References _free(), compressFilelist(), headerAddEntry(), headerIsEntry(), RPM_STRING_ARRAY_TYPE, rpmfiBuildFNames(), RPMTAG_BASENAMES, RPMTAG_DIRINDEXES, RPMTAG_DIRNAMES, and RPMTAG_OLDFILENAMES.

Referenced by hdrFullFilelist().

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.

static PyObject* rhnUnload ( hdrObject s  )  [static]

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.

static void rpm_exithook ( void   )  [static]

Definition at line 249 of file rpmmodule.c.

References rpmdbCheckTerminate().

Referenced by init_rpm().

static PyObject* rpmds_alloc ( PyTypeObject *  subtype,
int  nitems 
) [static]

Definition at line 560 of file rpmds-py.c.

References _rpmds_debug.

static void rpmds_free ( rpmdsObject s  )  [static]

Definition at line 548 of file rpmds-py.c.

References _rpmds_debug, rpmdsObject_s::ds, and rpmdsFree().

Referenced by rpmds_new().

static int rpmds_init ( rpmdsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 516 of file rpmds-py.c.

References _rpmds_debug, rpmdsObject_s::active, rpmdsObject_s::ds, hdr_Type, hdrGetHeader(), rpmdsNew(), RPMTAG_REQUIRENAME, and tagNumFromPyObject().

Referenced by rpmds_new().

static PyObject* rpmds_new ( PyTypeObject *  subtype,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 573 of file rpmds-py.c.

References _rpmds_debug, rpmdsObject_s::ds, rpmds_free(), and rpmds_init().

static PyObject* rpmfd_alloc ( PyTypeObject *  subtype,
int  nitems 
) [static]

Definition at line 245 of file rpmfd-py.c.

References _rpmfd_debug.

static void rpmfd_dealloc ( rpmfdObject s  )  [static]

Definition at line 174 of file rpmfd-py.c.

References Fclose(), and rpmfdObject_s::fd.

static void rpmfd_free ( rpmfdObject s  )  [static]

Definition at line 232 of file rpmfd-py.c.

References _rpmfd_debug, Fclose(), and rpmfdObject_s::fd.

Referenced by rpmfd_new().

static int rpmfd_init ( rpmfdObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 198 of file rpmfd-py.c.

References _rpmfd_debug, Fclose(), rpmfdObject_s::fd, Ferror(), Fopen(), Fstrerror(), and pyrpmError.

Referenced by rpmfd_new().

static rpmfdObject* rpmfd_new ( PyTypeObject *  subtype,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 258 of file rpmfd-py.c.

References _rpmfd_debug, rpmfdObject_s::fd, rpmfd_free(), and rpmfd_init().

static PyObject* rpmfi_alloc ( PyTypeObject *  subtype,
int  nitems 
) [static]

Definition at line 509 of file rpmfi-py.c.

References _rpmfi_debug.

static void rpmfi_free ( rpmfiObject s  )  [static]

Definition at line 497 of file rpmfi-py.c.

References _rpmfi_debug, rpmfiObject_s::fi, and rpmfiFree().

Referenced by rpmfi_new().

static int rpmfi_init ( rpmfiObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 464 of file rpmfi-py.c.

References _rpmfi_debug, rpmfiObject_s::active, rpmfiObject_s::fi, hdr_Type, hdrGetHeader(), rpmfiNew(), RPMTAG_BASENAMES, and tagNumFromPyObject().

Referenced by rpmfi_new().

static PyObject* rpmfi_new ( PyTypeObject *  subtype,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 522 of file rpmfi-py.c.

References _rpmfi_debug, rpmfiObject_s::fi, rpmfi_free(), and rpmfi_init().

static PyObject* rpmfts_alloc ( PyTypeObject *  type,
int  nitems 
) [static]

Definition at line 367 of file rpmfts-py.c.

static PyObject* rpmfts_Children ( rpmftsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 235 of file rpmfts-py.c.

References rpmftsObject_s::fts, Fts_children(), rpmftsObject_s::ftsp, and rpmfts_debug().

static PyObject* rpmfts_Close ( rpmftsObject s  )  [static]

Definition at line 259 of file rpmfts-py.c.

References RPMFTS_CLOSE, rpmfts_debug(), and rpmfts_state().

static void rpmfts_dealloc ( rpmftsObject s  )  [static]

Definition at line 373 of file rpmfts-py.c.

References _free(), rpmftsObject_s::roots, RPMFTS_CLOSE, rpmfts_debug(), and rpmfts_state().

static PyObject* rpmfts_Debug ( rpmftsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 176 of file rpmfts-py.c.

References _rpmfts_debug.

static void rpmfts_free ( PyObject *  s  )  [static]

Definition at line 361 of file rpmfts-py.c.

static PyObject* rpmfts_getattro ( PyObject *  o,
PyObject *  n 
) [static]

Definition at line 322 of file rpmfts-py.c.

References rpmfts_debug().

static int rpmfts_init ( rpmftsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 395 of file rpmfts-py.c.

References rpmfts_debug(), and rpmfts_initialize().

static PyObject* rpmfts_iter ( rpmftsObject s  )  [static]

Definition at line 339 of file rpmfts-py.c.

static PyObject* rpmfts_iternext ( rpmftsObject s  )  [static]

Definition at line 348 of file rpmfts-py.c.

References rpmftsObject_s::active, RPMFTS_CLOSE, RPMFTS_OPEN_LAZY, rpmfts_state(), and rpmfts_step().

static PyObject* rpmfts_new ( PyTypeObject *  type,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 412 of file rpmfts-py.c.

References rpmftsObject_s::callbacks, rpmftsObject_s::compare, CONSTANT, rpmftsObject_s::fts, FTS_AGAIN, FTS_COMFOLLOW, FTS_D, FTS_DC, FTS_DEFAULT, FTS_DNR, FTS_DONTCHDIR, FTS_DOT, FTS_DP, FTS_ERR, FTS_F, FTS_FOLLOW, FTS_LOGICAL, FTS_NAMEONLY, FTS_NOCHDIR, FTS_NOINSTR, FTS_NOSTAT, FTS_NS, FTS_NSOK, FTS_OPTIONMASK, FTS_PHYSICAL, FTS_ROOTLEVEL, FTS_ROOTPARENTLEVEL, FTS_SEEDOT, FTS_SKIP, FTS_SL, FTS_SLNONE, FTS_STOP, FTS_SYMFOLLOW, FTS_W, FTS_WHITEOUT, FTS_XDEV, rpmftsObject_s::ftsp, rpmftsObject_s::md_dict, rpmftsObject_s::roots, and rpmfts_debug().

static PyObject* rpmfts_Open ( rpmftsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 192 of file rpmfts-py.c.

References rpmfts_debug(), rpmfts_initialize(), RPMFTS_OPEN, and rpmfts_state().

static int rpmfts_print ( rpmftsObject s,
FILE *  fp,
int  flags 
) [static]

Definition at line 513 of file rpmfts-py.c.

References rpmftsObject_s::fts, _ftsent::fts_info, _ftsent::fts_level, _ftsent::fts_name, ftsInfoStr(), rpmftsObject_s::ftsp, and indent.

static PyObject* rpmfts_Read ( rpmftsObject s  )  [static]

Definition at line 215 of file rpmfts-py.c.

References rpmfts_debug(), and rpmfts_step().

static PyObject* rpmfts_Set ( rpmftsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 270 of file rpmfts-py.c.

References rpmftsObject_s::fts, Fts_set(), rpmftsObject_s::ftsp, and rpmfts_debug().

static int rpmfts_setattro ( PyObject *  o,
PyObject *  n,
PyObject *  v 
) [static]

Definition at line 329 of file rpmfts-py.c.

References rpmfts_debug().

static int rpmfts_traverse ( rpmftsObject s,
visitproc  visit,
void *  arg 
) [static]

Definition at line 503 of file rpmfts-py.c.

References rpmftsObject_s::callbacks, and rpmftsObject_s::md_dict.

PyObject* rpmHeaderFromFD ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
)

Definition at line 849 of file header-py.c.

References Fclose(), fdDup(), and rpmReadHeaders().

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 
)

Definition at line 955 of file header-py.c.

References Fclose(), fdDup(), and rpmMergeHeaders().

static PyObject* rpmmi_Count ( rpmmiObject s  )  [static]

Definition at line 134 of file rpmmi-py.c.

References rpmmiObject_s::mi, and rpmdbGetIteratorCount().

static void rpmmi_dealloc ( rpmmiObject s  )  [static]

Definition at line 196 of file rpmmi-py.c.

References rpmmiObject_s::mi, rpmmiObject_s::ref, and rpmdbFreeIterator().

static PyObject* rpmmi_getattro ( PyObject *  o,
PyObject *  n 
) [static]

Definition at line 207 of file rpmmi-py.c.

static PyObject* rpmmi_Instance ( rpmmiObject s  )  [static]

Definition at line 119 of file rpmmi-py.c.

References rpmmiObject_s::mi, and rpmdbGetIteratorOffset().

static PyObject* rpmmi_iter ( rpmmiObject s  )  [static]

Definition at line 72 of file rpmmi-py.c.

static PyObject* rpmmi_iternext ( rpmmiObject s  )  [static]

Definition at line 83 of file rpmmi-py.c.

References hdr_Wrap(), rpmmiObject_s::mi, rpmdbFreeIterator(), and rpmdbNextIterator().

Referenced by rpmmi_Next().

static PyObject* rpmmi_Next ( rpmmiObject s  )  [static]

Definition at line 100 of file rpmmi-py.c.

References rpmmi_iternext().

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

Definition at line 149 of file rpmmi-py.c.

References rpmmiObject_s::mi, rpmdbSetIteratorRE(), and tagNumFromPyObject().

static int rpmmi_setattro ( PyObject *  o,
PyObject *  n,
PyObject *  v 
) [static]

Definition at line 213 of file rpmmi-py.c.

rpmmiObject* rpmmi_Wrap ( rpmdbMatchIterator  mi,
PyObject *  s 
)

Definition at line 275 of file rpmmi-py.c.

References rpmmiObject_s::mi, pyrpmError, and rpmmiObject_s::ref.

Referenced by rpmdb_Match(), and rpmts_Match().

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.

static PyObject* rpmte_A ( rpmteObject s  )  [static]

Definition at line 112 of file rpmte-py.c.

References rpmteA(), and rpmteObject_s::te.

static PyObject* rpmte_AddedKey ( rpmteObject s  )  [static]

Definition at line 192 of file rpmte-py.c.

References rpmteAddedKey(), and rpmteObject_s::te.

static PyObject* rpmte_Color ( rpmteObject s  )  [static]

Definition at line 136 of file rpmte-py.c.

References rpmteColor(), and rpmteObject_s::te.

static PyObject* rpmte_DBOffset ( rpmteObject s  )  [static]

Definition at line 208 of file rpmte-py.c.

References rpmteDBOffset(), and rpmteObject_s::te.

static PyObject* rpmte_Debug ( rpmteObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 57 of file rpmte-py.c.

References _rpmte_debug.

static PyObject* rpmte_Degree ( rpmteObject s  )  [static]

Definition at line 168 of file rpmte-py.c.

References rpmteDegree(), and rpmteObject_s::te.

static PyObject* rpmte_DependsOnKey ( rpmteObject s  )  [static]

Definition at line 200 of file rpmte-py.c.

References rpmteDependsOnKey(), and rpmteObject_s::te.

static PyObject* rpmte_Depth ( rpmteObject s  )  [static]

Definition at line 152 of file rpmte-py.c.

References rpmteDepth(), and rpmteObject_s::te.

static PyObject* rpmte_DS ( rpmteObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 232 of file rpmte-py.c.

References rpmds_Wrap(), rpmdsLink, rpmteDS(), tagNumFromPyObject(), and rpmteObject_s::te.

static PyObject* rpmte_E ( rpmteObject s  )  [static]

Definition at line 88 of file rpmte-py.c.

References rpmteE(), and rpmteObject_s::te.

static PyObject* rpmte_FI ( rpmteObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 265 of file rpmte-py.c.

References rpmfi_Wrap(), rpmfiLink, rpmteFI(), tagNumFromPyObject(), and rpmteObject_s::te.

static PyObject* rpmte_getattro ( PyObject *  o,
PyObject *  n 
) [static]

Definition at line 379 of file rpmte-py.c.

static PyObject* rpmte_Key ( rpmteObject s  )  [static]

Definition at line 216 of file rpmte-py.c.

References rpmteKey(), and rpmteObject_s::te.

static PyObject* rpmte_N ( rpmteObject s  )  [static]

Definition at line 80 of file rpmte-py.c.

References rpmteN(), and rpmteObject_s::te.

static PyObject* rpmte_NEVR ( rpmteObject s  )  [static]

Definition at line 128 of file rpmte-py.c.

References rpmteNEVR(), and rpmteObject_s::te.

static PyObject* rpmte_Npreds ( rpmteObject s  )  [static]

Definition at line 160 of file rpmte-py.c.

References rpmteNpreds(), and rpmteObject_s::te.

static PyObject* rpmte_O ( rpmteObject s  )  [static]

Definition at line 120 of file rpmte-py.c.

References rpmteO(), and rpmteObject_s::te.

static PyObject* rpmte_Parent ( rpmteObject s  )  [static]

Definition at line 176 of file rpmte-py.c.

References rpmteParent(), and rpmteObject_s::te.

static PyObject* rpmte_PkgFileSize ( rpmteObject s  )  [static]

Definition at line 144 of file rpmte-py.c.

References rpmtePkgFileSize(), and rpmteObject_s::te.

static int rpmte_print ( rpmteObject s,
FILE *  fp,
int  flags 
) [static]

Definition at line 363 of file rpmte-py.c.

References rpmteA(), rpmteNEVR(), rpmteType(), rpmteObject_s::te, TR_ADDED, and TR_REMOVED.

static PyObject* rpmte_R ( rpmteObject s  )  [static]

Definition at line 104 of file rpmte-py.c.

References rpmteR(), and rpmteObject_s::te.

static int rpmte_setattro ( PyObject *  o,
PyObject *  n,
PyObject *  v 
) [static]

Definition at line 385 of file rpmte-py.c.

static PyObject* rpmte_TEType ( rpmteObject s  )  [static]

Definition at line 72 of file rpmte-py.c.

References rpmteType(), and rpmteObject_s::te.

static PyObject* rpmte_Tree ( rpmteObject s  )  [static]

Definition at line 184 of file rpmte-py.c.

References rpmteTree(), and rpmteObject_s::te.

static PyObject* rpmte_V ( rpmteObject s  )  [static]

Definition at line 96 of file rpmte-py.c.

References rpmteV(), and rpmteObject_s::te.

rpmteObject* rpmte_Wrap ( rpmte  te  ) 

Definition at line 447 of file rpmte-py.c.

References rpmteObject_s::te.

Referenced by rpmts_iternext().

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

Todo:
Permit finer control (i.e. not just --allmatches) of deleted elments.

Definition at line 272 of file rpmts-py.c.

References _rpmts_debug, pyrpmError, rpmdbFreeIterator(), rpmdbGetIteratorCount(), rpmdbGetIteratorOffset(), RPMDBI_LABEL, RPMDBI_PACKAGES, rpmdbNextIterator(), rpmtsAddEraseElement(), rpmtsInitIterator(), and rpmtsObject_s::ts.

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

Definition at line 218 of file rpmts-py.c.

References _rpmts_debug, hdr_Type, hdrGetHeader(), rpmtsObject_s::keyList, pyrpmError, rpmtsAddAvailableElement(), rpmtsAddInstallElement(), and rpmtsObject_s::ts.

static PyObject* rpmts_alloc ( PyTypeObject *  subtype,
int  nitems 
) [static]

Definition at line 1597 of file rpmts-py.c.

References _rpmts_debug.

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

Definition at line 371 of file rpmts-py.c.

References _rpmts_debug, rpmProblem_s::altNEVR, rpmProblem_s::key, rpmps_s::numProblems, rpmProblem_s::pkgNEVR, rpmps_s::probs, rpmalMakeIndex(), RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, RPMPROB_BADRELOCATE, rpmpsFree(), RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, rpmts_SolveCallback(), rpmtsCheck(), rpmtsProblems(), rpmtsSetSolveCallback(), rpmtsSolve(), rpmtsObject_s::ts, and rpmProblem_s::type.

static PyObject* rpmts_Clean ( rpmtsObject s  )  [static]

Definition at line 513 of file rpmts-py.c.

References _rpmts_debug, rpmtsClean(), and rpmtsObject_s::ts.

static PyObject* rpmts_CloseDB ( rpmtsObject s  )  [static]

Definition at line 680 of file rpmts-py.c.

References _rpmts_debug, rpmtsCloseDB(), and rpmtsObject_s::ts.

rpmtsObject* rpmts_Create ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
)

Definition at line 1687 of file rpmts-py.c.

References _rpmts_debug, rpmtsObject_s::keyList, rpmExpandNumeric(), rpmtsCreate(), rpmtsSetRootDir(), rpmtsSetVSFlags(), rpmtsObject_s::scriptFd, rpmtsObject_s::ts, rpmtsObject_s::tsi, rpmtsObject_s::tsiFilter, and vsflags.

static void rpmts_dealloc ( rpmtsObject s  )  [static]

Definition at line 1498 of file rpmts-py.c.

References _rpmts_debug, Fclose(), rpmtsObject_s::keyList, rpmtsFree(), rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.

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

Definition at line 171 of file rpmts-py.c.

References _rpmts_debug, and rpmtsObject_s::ts.

static void rpmts_free ( rpmtsObject s  )  [static]

Definition at line 1578 of file rpmts-py.c.

References _rpmts_debug, Fclose(), rpmtsObject_s::keyList, rpmtsFree(), rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.

Referenced by rpmts_new().

static PyObject* rpmts_getattro ( PyObject *  o,
PyObject *  n 
) [static]

Definition at line 1513 of file rpmts-py.c.

static PyObject* rpmts_GetKeys ( rpmtsObject s  )  [static]

Definition at line 988 of file rpmts-py.c.

References _free(), _rpmts_debug, rpmtsGetKeys(), and rpmtsObject_s::ts.

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

Definition at line 811 of file rpmts-py.c.

References _free(), _rpmts_debug, headerCheck(), pyrpmError, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTTRUSTED, RPMRC_OK, and rpmtsObject_s::ts.

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

Definition at line 758 of file rpmts-py.c.

References _rpmts_debug, Fclose(), fdDup(), hdr_Wrap(), headerFree(), pyrpmError, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, rpmReadPackageFile(), and rpmtsObject_s::ts.

static PyObject* rpmts_IDTXglob ( rpmtsObject s  )  [static]

Definition at line 575 of file rpmts-py.c.

References _free(), _rpmts_debug, IDT_s::h, hdr_Wrap(), IDTindex_s::idt, IDTXfree(), IDTXglob(), IDT_s::key, IDTindex_s::nidt, rpmExpand(), RPMTAG_REMOVETID, rpmtsObject_s::ts, IDT_s::u32, and IDT_s::val.

static PyObject* rpmts_IDTXload ( rpmtsObject s  )  [static]

Definition at line 530 of file rpmts-py.c.

References _rpmts_debug, IDT_s::h, hdr_Wrap(), IDTXfree(), IDTXload(), IDT_s::instance, RPMTAG_INSTALLTID, rpmtsObject_s::ts, IDT_s::u32, and IDT_s::val.

static int rpmts_init ( rpmtsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 1547 of file rpmts-py.c.

References _rpmts_debug, rpmtsObject_s::keyList, rpmExpandNumeric(), rpmtsCreate(), rpmtsSetRootDir(), rpmtsSetVSFlags(), rpmtsObject_s::scriptFd, rpmtsObject_s::ts, rpmtsObject_s::tsi, rpmtsObject_s::tsiFilter, and vsflags.

Referenced by rpmts_new().

static PyObject* rpmts_InitDB ( rpmtsObject s  )  [static]

Definition at line 698 of file rpmts-py.c.

References _rpmts_debug, rpmtsCloseDB(), rpmtsInitDB(), and rpmtsObject_s::ts.

static PyObject* rpmts_iternext ( rpmtsObject s  )  [static]

Todo:
Add TR_ADDED filter to iterator.

Definition at line 1257 of file rpmts-py.c.

References _rpmts_debug, rpmte_Wrap(), rpmtsiFree, rpmtsiInit, rpmtsiNext(), rpmtsObject_s::ts, rpmtsObject_s::tsi, and rpmtsObject_s::tsiFilter.

Referenced by rpmts_Next().

static rpmmiObject* rpmts_Match ( rpmtsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 1345 of file rpmts-py.c.

References _rpmts_debug, RPMDBI_PACKAGES, rpmmi_Wrap(), rpmtsInitIterator(), rpmtsOpenDB(), tagNumFromPyObject(), and rpmtsObject_s::ts.

static PyObject* rpmts_new ( PyTypeObject *  subtype,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 1609 of file rpmts-py.c.

References _rpmts_debug, rpmts_free(), rpmts_init(), and rpmtsObject_s::ts.

static PyObject* rpmts_Next ( rpmtsObject s  )  [static]

Todo:
Add TR_ADDED filter to iterator.

Definition at line 1291 of file rpmts-py.c.

References _rpmts_debug, rpmts_iternext(), and rpmtsObject_s::ts.

static PyObject* rpmts_OpenDB ( rpmtsObject s  )  [static]

Definition at line 662 of file rpmts-py.c.

References _rpmts_debug, rpmtsOpenDB(), and rpmtsObject_s::ts.

static PyObject* rpmts_Order ( rpmtsObject s  )  [static]

Definition at line 493 of file rpmts-py.c.

References _rpmts_debug, rpmtsOrder(), and rpmtsObject_s::ts.

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

Definition at line 951 of file rpmts-py.c.

References _rpmts_debug, pyrpmError, rpmcliImportPubkey(), and rpmtsObject_s::ts.

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

Definition at line 915 of file rpmts-py.c.

References _rpmts_debug, pgpPrtPkts(), pyrpmError, and rpmtsObject_s::ts.

static rpmpsObject* rpmts_Problems ( rpmtsObject s  )  [static]

Definition at line 1150 of file rpmts-py.c.

References _rpmts_debug, rpmtsProblems(), and rpmtsObject_s::ts.

static PyObject* rpmts_RebuildDB ( rpmtsObject s  )  [static]

Definition at line 718 of file rpmts-py.c.

References _rpmts_debug, rpmtsRebuildDB(), and rpmtsObject_s::ts.

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

Definition at line 623 of file rpmts-py.c.

References _rpmts_debug, alloca(), INSTALL_FRESHEN, INSTALL_INSTALL, INSTALL_UPGRADE, rpmInstallArguments_s::rbtid, RPMPROB_FILTER_OLDPACKAGE, rpmRollback(), RPMTRANS_FLAG_NOMD5, rpmtsSetFlags(), rpmInstallArguments_s::transFlags, rpmtsObject_s::ts, VERIFY_DIGEST, VERIFY_HDRCHK, and VERIFY_SIGNATURE.

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

Definition at line 1163 of file rpmts-py.c.

References _free(), _rpmts_debug, rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, rpmtsObject_s::ignoreSet, rpmps_s::numProblems, rpmps_s::probs, rpmtsCallbackType_s::pythonError, rpmGetPath(), rpmProblemString(), rpmpsFree(), RPMTRANS_FLAG_NOCONTEXTS, rpmtsCallback(), rpmtsProblems(), rpmtsRun(), rpmtsSELinuxEnabled(), rpmtsSetNotifyCallback(), rpmtsObject_s::ts, and rpmtsCallbackType_s::tso.

static int rpmts_setattro ( PyObject *  o,
PyObject *  n,
PyObject *  v 
) [static]

Definition at line 1521 of file rpmts-py.c.

References fdDup(), rpmtsSetScriptFd(), rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.

static PyObject* rpmts_SetColor ( rpmtsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 893 of file rpmts-py.c.

References _rpmts_debug, rpmtsSetColor(), and rpmtsObject_s::ts.

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

Definition at line 1104 of file rpmts-py.c.

References _rpmts_debug, rpmtsSetFlags(), and rpmtsObject_s::ts.

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

Definition at line 1126 of file rpmts-py.c.

References _rpmts_debug, rpmtsObject_s::ignoreSet, and rpmtsObject_s::ts.

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

Definition at line 870 of file rpmts-py.c.

References _rpmts_debug, rpmtsSetVSFlags(), rpmtsObject_s::ts, and vsflags.

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

Definition at line 333 of file rpmts-py.c.

References _rpmts_debug, rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::pythonError, rpmdsDNEVR(), rpmdsEVR(), rpmdsFlags(), rpmdsN(), rpmdsTagN(), and rpmtsCallbackType_s::tso.

Referenced by rpmts_Check().

static PyObject* rpmts_VerifyDB ( rpmtsObject s  )  [static]

Definition at line 738 of file rpmts-py.c.

References _rpmts_debug, rpmtsVerifyDB(), and rpmtsObject_s::ts.

static 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 194 of file rpmts-py.c.

References _rpmts_debug, RPMAL_NOMATCH, rpmalAdd(), rpmdsFree(), rpmdsNew(), rpmfiFree(), rpmfiNew(), RPMTAG_BASENAMES, RPMTAG_PROVIDENAME, and rpmtsColor().

Referenced by rpmts_AddInstall().

static 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 1024 of file rpmts-py.c.

References _rpmts_debug, rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, Fclose(), fdDup(), Fileno(), headerNVR(), rpmtsCallbackType_s::pythonError, RPMCALLBACK_INST_CLOSE_FILE, and RPMCALLBACK_INST_OPEN_FILE.

Referenced by rpmts_Run().

static PyObject* setEpochPromote ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 162 of file rpmmodule.c.

References _rpmds_nopromote.

static PyObject* setLogFile ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 119 of file rpmmodule.c.

References pyrpmError, and rpmlogSetFile().

static PyObject* setStats ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 176 of file rpmmodule.c.

References _rpmts_stats.

static PyObject* setVerbosity ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 145 of file rpmmodule.c.

References rpmSetVerbosity.

static PyObject* signalsCaught ( PyObject *  self,
PyObject *  check 
) [static]

Definition at line 75 of file rpmmodule.c.

References rpmsqCaught.

static specObject* spec_Parse ( rpmtsObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 1314 of file rpmts-py.c.

References parseSpec(), pyrpmError, rpmtsSpec(), and rpmtsObject_s::ts.

long tagNumFromPyObject ( PyObject *  item  ) 

Definition at line 438 of file header-py.c.

References rpmTagTable, rpmTagTableSize, and xstrcasecmp().

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 1034 of file header-py.c.

References hdr_compare().


Variable Documentation

PyMappingMethods hdr_as_mapping [static]

Initial value:

 {
        (inquiry) 0,                    
        (binaryfunc) hdr_subscript,     
        (objobjargproc)0,               
}

Definition at line 643 of file header-py.c.

char hdr_doc[] [static]

Initial value:

""

Definition at line 651 of file header-py.c.

struct PyMethodDef hdr_methods[] [static]

Initial value:

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

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

    {NULL,              NULL}           
}

Definition at line 385 of file header-py.c.

PyTypeObject hdr_Type

Definition at line 657 of file header-py.c.

Referenced by init_rpm(), rpmds_init(), rpmfi_init(), and rpmts_AddInstall().

PyObject* pyrpmError

Definition at line 43 of file rpmmodule.c.

Referenced by hdrLoad(), hdrSprintf(), hdrUnload(), init_rpm(), rhnLoad(), rpmdb_subscript(), rpmfd_Fopen(), rpmfd_init(), rpmHeaderFromFile(), rpmMergeHeaders(), rpmmi_Wrap(), rpmReadHeaders(), rpmSingleHeaderFromFD(), rpmts_AddErase(), rpmts_AddInstall(), rpmts_HdrCheck(), rpmts_HdrFromFdno(), rpmts_PgpImportPubkey(), rpmts_PgpPrtPkts(), setLogFile(), and spec_Parse().

char rpm__doc__[] [static]

Initial value:

""

Definition at line 256 of file rpmmodule.c.

struct PyMethodDef rpmfd_methods[] [static]

Initial value:

 {
    {"Debug",   (PyCFunction)rpmfd_Debug,       METH_VARARGS|METH_KEYWORDS,
        NULL},
    {"Fopen",   (PyCFunction)rpmfd_Fopen,       METH_VARARGS|METH_KEYWORDS,
        NULL},
    {NULL,              NULL}           
}

Definition at line 160 of file rpmfd-py.c.

PyTypeObject rpmfd_Type

Definition at line 284 of file rpmfd-py.c.

Referenced by init_rpm().

char rpmfts_doc[] [static]

Initial value:

""

Definition at line 530 of file rpmfts-py.c.

PyMemberDef rpmfts_members[] [static]

Initial value:

 {
    {"__dict__",T_OBJECT,offsetof(rpmftsObject, md_dict),       READONLY,
        NULL},
    {"callbacks",T_OBJECT,offsetof(rpmftsObject, callbacks),    0,
"Callback dictionary per fts_info state: FTS_{D|DC|DEFAULT|DNR|DOT|DP|ERR|F|INIT|NS|NSOK|SL|SLNONE|W}"},
    {"options", T_INT,  offsetof(rpmftsObject, options),        0,
"Option bit(s): FTS_{COMFOLLOW|LOGICAL|NOCHDIR|NOSTAT|PHYSICAL|SEEDOT|XDEV}"},
    {"ignore",  T_INT,  offsetof(rpmftsObject, ignore),         0,
"Ignore bit(s): (1 << info) with info one of FTS_{D|DC|DEFAULT|DNR|DOT|DP|ERR|F|INIT|NS|NSOK|SL|SLNONE|W}"},
    {NULL, 0, 0, 0, NULL}
}

Definition at line 310 of file rpmfts-py.c.

struct PyMethodDef rpmfts_methods[] [static]

Initial value:

 {
    {"Debug",   (PyCFunction)rpmfts_Debug,      METH_VARARGS|METH_KEYWORDS,
        NULL},
    {"open",    (PyCFunction)rpmfts_Open,       METH_VARARGS|METH_KEYWORDS,
        NULL},
    {"read",    (PyCFunction)rpmfts_Read,       METH_NOARGS,
        NULL},
    {"children",(PyCFunction)rpmfts_Children,   METH_VARARGS|METH_KEYWORDS,
        NULL},
    {"close",   (PyCFunction)rpmfts_Close,      METH_NOARGS,
        NULL},
    {"set",     (PyCFunction)rpmfts_Set,        METH_VARARGS|METH_KEYWORDS,
        NULL},
    {NULL,              NULL}           
}

Definition at line 291 of file rpmfts-py.c.

PyTypeObject rpmfts_Type

Definition at line 536 of file rpmfts-py.c.

Referenced by init_rpm().

char rpmmi_doc[] [static]

Initial value:

""

Definition at line 222 of file rpmmi-py.c.

struct PyMethodDef rpmmi_methods[] [static]

Initial value:

 {
    {"next",        (PyCFunction) rpmmi_Next,           METH_NOARGS,
"mi.next() -> hdr\n\
- Retrieve next header that matches. Iterate directly in python if possible.\n" },
    {"instance",    (PyCFunction) rpmmi_Instance,       METH_NOARGS,
        NULL },
    {"count",       (PyCFunction) rpmmi_Count,          METH_NOARGS,
        NULL },
    {"pattern",     (PyCFunction) rpmmi_Pattern,        METH_VARARGS|METH_KEYWORDS,
"mi.pattern(TagN, mire_type, pattern)\n\
- Set a secondary match pattern on tags from retrieved header.\n" },
    {NULL,              NULL}           
}

Definition at line 179 of file rpmmi-py.c.

PyTypeObject rpmmi_Type

Definition at line 228 of file rpmmi-py.c.

Referenced by init_rpm().

PyMethodDef rpmModuleMethods[] [static]

Definition at line 189 of file rpmmodule.c.

Referenced by init_rpm().

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 381 of file rpmrc-py.c.

Referenced by init_rpm().

char rpmte_doc[] [static]

Initial value:

""

Definition at line 394 of file rpmte-py.c.

struct PyMethodDef rpmte_methods[] [static]

Definition at line 300 of file rpmte-py.c.

PyTypeObject rpmte_Type

Definition at line 400 of file rpmte-py.c.

Referenced by init_rpm().

char rpmts_doc[] [static]

Initial value:

""

Definition at line 1630 of file rpmts-py.c.

struct PyMethodDef rpmts_methods[] [static]

Definition at line 1403 of file rpmts-py.c.

PyTypeObject rpmts_Type

Definition at line 1636 of file rpmts-py.c.

Referenced by init_rpm().


Generated on Fri Oct 12 08:44:57 2007 for rpm by  doxygen 1.5.2