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

PYTHON.


Files

file  _rpmdb.c
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  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  Rpmfts
 A python rpm.fts object represents an rpm fts(3) 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

rpmmiObjectrpmdb_Match (rpmdbObject *s, PyObject *args)
int rpmdb_length (rpmdbObject *s)
hdrObjectrpmdb_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: Rpmfd

void rpmfd_dealloc (rpmfdObject *s)
PyObject * rpmfd_getattr (rpmfdObject *o, char *name)
int rpmfd_init (rpmfdObject *s, PyObject *args, PyObject *kwds)
void rpmfd_free (rpmfdObject *s)
PyObject * rpmfd_alloc (PyTypeObject *subtype, int nitems)
rpmfdObjectrpmfd_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
PyMethodDef rpmfd_methods []
PyTypeObject rpmfd_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)
rpmmiObjectrpmmi_Wrap (rpmdbMatchIterator mi)
PyMethodDef rpmmi_methods []
PyTypeObject rpmmi_Type
char rpmmi_doc []

Module: rpm

PyObject * archScore (PyObject *self, PyObject *args)
PyObject * setLogFile (PyObject *self, PyObject *args)
PyObject * setVerbosity (PyObject *self, PyObject *args)
PyObject * setEpochPromote (PyObject *self, PyObject *args)
PyObject * setStats (PyObject *self, PyObject *args)
void initrpm (void)
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 []

Class: Rpmte

PyObject * rpmte_getattr (rpmteObject *o, char *name)
PyMethodDef rpmte_methods []
PyTypeObject rpmte_Type

Class: Rpmts

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, const 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_SetColor (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 (rpmtsObject *s)
PyObject * rpmts_getattr (rpmtsObject *o, char *name)
int rpmts_setattr (rpmtsObject *o, char *name, PyObject *val)
int rpmts_init (rpmtsObject *s, PyObject *args, PyObject *kwds)
void rpmts_free (rpmtsObject *s)
PyObject * rpmts_alloc (PyTypeObject *subtype, int nitems)
PyObject * rpmts_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
PyObject * rpmts_iternext (rpmtsObject *s)
PyObject * rpmts_Next (rpmtsObject *s)
rpmmiObjectrpmts_Match (rpmtsObject *s, PyObject *args)
rpmtsObjectrpmts_Create (PyObject *self, PyObject *args)
PyMethodDef rpmts_methods []
PyTypeObject rpmts_Type
char rpmts_doc []

Class: Rpmfts

PyMethodDef rpmfts_methods []
PyTypeObject rpmfts_Type

Typedefs

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

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

PyObject* archScore PyObject *    self,
PyObject *    args
[static]
 

Definition at line 46 of file rpmmodule.c.

References RPM_MACHTABLE_INSTARCH, and rpmMachineScore().

void hdr_dealloc hdrObject   s [static]
 

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

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

PyObject* hdr_getattr hdrObject   s,
char *    name
[static]
 

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

References hdr_methods.

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

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

References 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, 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(), and hdrObject_s::h.

PyObject* hdrExpandFilelist hdrObject   s,
PyObject *    args
[static]
 

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

References expandFilelist(), and hdrObject_s::h.

PyObject* hdrFullFilelist hdrObject   s,
PyObject *    args
[static]
 

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

References hdrObject_s::h, and mungeFilelist().

PyObject* hdrKeyList hdrObject   s,
PyObject *    args
[static]
 

Definition at line 115 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* hdrSprintf hdrObject   s,
PyObject *    args
[static]
 

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

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

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

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

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

void initrpm void   
 

Definition at line 176 of file rpmmodule.c.

References _RPMVSF_NODIGESTS, _RPMVSF_NOHEADER, _RPMVSF_NOPAYLOAD, _RPMVSF_NOSIGNATURES, HEADER_EXT_TAG, headerSprintfExtension_s::name, pyrpmError, rpm__doc__, RPMAL_NOMATCH, 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, RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, 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, 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_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, 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, 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.

void mungeFilelist Header    h [static]
 

Definition at line 207 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().

void rpmdb_dealloc rpmdbObject   s [static]
 

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

References rpmdbObject_s::db, and rpmdbClose().

PyObject* rpmdb_getattr rpmdbObject   s,
char *    name
[static]
 

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

References rpmdb_methods.

int rpmdb_length rpmdbObject   s [static]
 

Definition at line 150 of file rpmdb-py.c.

References rpmdbObject_s::db, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), and rpmdbNextIterator().

rpmmiObject* rpmdb_Match rpmdbObject   s,
PyObject *    args
[static]
 

Definition at line 115 of file rpmdb-py.c.

References rpmdbObject_s::db, RPMDBI_PACKAGES, rpmdbInitIterator(), rpmmi_Wrap(), and tagNumFromPyObject().

hdrObject* rpmdb_subscript rpmdbObject   s,
PyObject *    key
[static]
 

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

References rpmdbObject_s::db, hdr_Wrap(), headerFree(), pyrpmError, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), and rpmdbNextIterator().

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

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

void rpmfd_dealloc rpmfdObject   s [static]
 

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

References Fclose(), and rpmfdObject_s::fd.

void rpmfd_free rpmfdObject   s [static]
 

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

References Fclose(), and rpmfdObject_s::fd.

Referenced by rpmfd_new().

PyObject* rpmfd_getattr rpmfdObject   o,
char *    name
[static]
 

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

References rpmfd_methods.

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

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

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

Referenced by rpmfd_new().

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

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

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

PyObject* rpmmi_Count rpmmiObject   s,
PyObject *    args
[static]
 

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

References rpmmiObject_s::mi, and rpmdbGetIteratorCount().

void rpmmi_dealloc rpmmiObject   s [static]
 

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

References rpmmiObject_s::mi, and rpmdbFreeIterator().

PyObject* rpmmi_getattr rpmmiObject   s,
char *    name
[static]
 

Definition at line 216 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 rpmmiObject_s::mi, and 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(), rpmmiObject_s::mi, 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 159 of file rpmmi-py.c.

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

rpmmiObject* rpmmi_Wrap rpmdbMatchIterator    mi
 

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

References rpmmiObject_s::mi, pyrpmError, and rpmmi_Type.

Referenced by rpmdb_Match(), and rpmts_Match().

PyObject* rpmrc_AddMacro PyObject *    self,
PyObject *    args
 

Definition at line 38 of file rpmrc-py.c.

References addMacro().

PyObject* rpmrc_DelMacro PyObject *    self,
PyObject *    args
 

Definition at line 53 of file rpmrc-py.c.

References delMacro().

PyObject* rpmte_getattr rpmteObject   o,
char *    name
[static]
 

Definition at line 377 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 259 of file rpmts-py.c.

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

PyObject* rpmts_AddInstall rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsObject_s::keyList, rpmtsAddAvailableElement(), rpmtsAddInstallElement(), and rpmtsObject_s::ts.

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

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

References _rpmts_debug.

PyObject* rpmts_Check rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsCallbackType_s::_save, rpmProblem_s::altNEVR, rpmtsCallbackType_s::cb, fnpyKey, rpmProblem_s::key, rpmps_s::numProblems, rpmProblem_s::pkgNEVR, rpmps_s::probs, rpmtsCallbackType_s::pythonError, rpmalMakeIndex(), RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, rpmpsFree(), RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, rpmts_SolveCallback(), rpmtsCheck(), rpmtsProblems(), rpmtsSetSolveCallback(), rpmtsObject_s::ts, and rpmtsCallbackType_s::tso.

PyObject* rpmts_Clean rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsClean(), and rpmtsObject_s::ts.

PyObject* rpmts_CloseDB rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsCloseDB(), and rpmtsObject_s::ts.

rpmtsObject* rpmts_Create PyObject *    self,
PyObject *    args
 

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

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

void rpmts_dealloc rpmtsObject   s [static]
 

Definition at line 1350 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 173 of file rpmts-py.c.

References _rpmts_debug, and rpmtsObject_s::ts.

void rpmts_free rpmtsObject   s [static]
 

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

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

Referenced by rpmts_new().

PyObject* rpmts_getattr rpmtsObject   o,
char *    name
[static]
 

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

References rpmts_methods.

PyObject* rpmts_GetKeys rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_HdrCheck rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_HdrFromFdno rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_IDTXglob rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_IDTXload rpmtsObject   s,
PyObject *    args
[static]
 

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

References IDT_s::h, hdr_Wrap(), IDTindex_s::idt, IDTXfree(), IDTXload(), IDT_s::instance, IDTindex_s::nidt, rpmTag, RPMTAG_INSTALLTID, rpmtsObject_s::ts, and IDT_s::val.

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

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

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

Referenced by rpmts_new().

PyObject* rpmts_InitDB rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_iternext rpmtsObject   s [static]
 

Todo:
Add TR_ADDED filter to iterator.

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

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

Referenced by rpmts_Next().

rpmmiObject* rpmts_Match rpmtsObject   s,
PyObject *    args
[static]
 

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

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

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

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

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

PyObject* rpmts_Next rpmtsObject   s [static]
 

Todo:
Add TR_ADDED filter to iterator.

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

References rpmts_iternext(), and rpmtsObject_s::ts.

PyObject* rpmts_OpenDB rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsOpenDB(), and rpmtsObject_s::ts.

PyObject* rpmts_Order rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsOrder(), and rpmtsObject_s::ts.

PyObject* rpmts_PgpImportPubkey rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_PgpPrtPkts rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_RebuildDB rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsRebuildDB(), and rpmtsObject_s::ts.

PyObject* rpmts_Rollback rpmtsObject   s,
PyObject *    args
[static]
 

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

References alloca(), INSTALL_FRESHEN, INSTALL_INSTALL, INSTALL_UPGRADE, rpmInstallArguments_s::installInterfaceFlags, rpmInstallArguments_s::probFilter, rpmInstallArguments_s::qva_flags, rpmInstallArguments_s::rbtid, rpmInstallArguments_s::relocations, RPMPROB_FILTER_OLDPACKAGE, rpmRollback(), RPMTRANS_FLAG_NOMD5, rpmtransFlags, rpmtsSetFlags(), rpmInstallArguments_s::transFlags, rpmtsObject_s::ts, uint_32, VERIFY_DIGEST, VERIFY_HDRCHK, and VERIFY_SIGNATURE.

PyObject* rpmts_Run rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, rpmtsObject_s::ignoreSet, rpmps_s::numProblems, rpmps_s::probs, rpmtsCallbackType_s::pythonError, rpmProblemString(), rpmpsFree(), rpmtsCallback(), rpmtsProblems(), rpmtsRun(), rpmtsSetNotifyCallback(), rpmProblem_s::str1, rpmtsObject_s::ts, rpmtsCallbackType_s::tso, rpmProblem_s::type, and rpmProblem_s::ulong1.

int rpmts_setattr rpmtsObject   o,
char *    name,
PyObject *    val
[static]
 

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

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

PyObject* rpmts_SetColor rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_SetFlags rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_SetProbFilter rpmtsObject   s,
PyObject *    args
[static]
 

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

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

PyObject* rpmts_SetVSFlags rpmtsObject   s,
PyObject *    args
[static]
 

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

References rpmtsSetVSFlags(), rpmVSFlags, and rpmtsObject_s::ts.

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

Definition at line 319 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 716 of file rpmts-py.c.

References rpmtsVerifyDB(), and rpmtsObject_s::ts.

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

References _rpmts_debug, fnpyKey, RPMAL_NOMATCH, rpmalAdd(), rpmds, rpmdsFree(), rpmdsNew(), rpmfi, rpmfiFree(), rpmfiNew(), 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 976 of file rpmts-py.c.

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

Referenced by rpmts_Run().

PyObject* setEpochPromote PyObject *    self,
PyObject *    args
[static]
 

Definition at line 100 of file rpmmodule.c.

PyObject* setLogFile PyObject *    self,
PyObject *    args
[static]
 

Definition at line 61 of file rpmmodule.c.

References pyrpmError, and rpmlogSetFile().

PyObject* setStats PyObject *    self,
PyObject *    args
[static]
 

Definition at line 110 of file rpmmodule.c.

PyObject* setVerbosity PyObject *    self,
PyObject *    args
[static]
 

Definition at line 85 of file rpmmodule.c.

References rpmSetVerbosity.

long tagNumFromPyObject PyObject *    item
 

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

References xstrcasecmp().

Referenced by hdr_dsFromHeader(), hdr_fiFromHeader(), hdr_subscript(), rpmdb_Match(), rpmds_Single(), rpmmi_Pattern(), rpmte_DS(), rpmte_FI(), and rpmts_Match().


Variable Documentation

PyMappingMethods hdr_as_mapping [static]
 

Initial value:

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

Definition at line 573 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 347 of file header-py.c.

Referenced by hdr_getattr().

PyTypeObject hdr_Type
 

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

Referenced by hdr_Wrap(), and versionCompare().

PyObject* pyrpmError
 

Definition at line 17 of file header-py.h.

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

char rpm__doc__[] [static]
 

Initial value:

""

Definition at line 170 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 200 of file rpmdb-py.c.

char rpmdb_doc[] [static]
 

Initial value:

""

Definition at line 227 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 233 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 155 of file rpmfd-py.c.

Referenced by rpmfd_getattr().

PyTypeObject rpmfd_Type
 

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

Referenced by rpmfd_Wrap().

struct PyMethodDef rpmfts_methods[] [static]
 

Initial value:

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

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

PyTypeObject rpmfts_Type
 

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

char rpmmi_doc[] [static]
 

Initial value:

""

Definition at line 225 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 187 of file rpmmi-py.c.

Referenced by rpmmi_getattr().

PyTypeObject rpmmi_Type
 

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

Referenced by rpmmi_Wrap().

PyMethodDef rpmModuleMethods[] [static]
 

Definition at line 120 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 312 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 373 of file rpmrc-py.c.

struct PyMethodDef rpmte_methods[] [static]
 

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

Referenced by rpmte_getattr().

PyTypeObject rpmte_Type
 

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

Referenced by rpmte_Wrap().

char rpmts_doc[] [static]
 

Initial value:

""

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

struct PyMethodDef rpmts_methods[] [static]
 

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

Referenced by rpmts_getattr().

PyTypeObject rpmts_Type
 

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

Referenced by rpmts_Create().


Generated on Sun Oct 26 13:02:10 2003 for rpm by doxygen1.2.18