PYTHON-C Language Bindings.


Data Structures

struct  hdrObject_s
struct  rpmdbObject_s
struct  rpmmiObject_s
struct  rpmrcObject_s
struct  rpmtsCallbackType_s

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

Typedefs

typedef struct hdrObject_s hdrObject
typedef struct rpmdbObject_s rpmdbObject
typedef struct rpmmiObject_s rpmmiObject
typedef struct 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]

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]

hdrObject* hdr_Wrap ( Header  h  ) 

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  ) 

static PyObject* hdrKeyList ( hdrObject s  )  [static]

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

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]

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]

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

static PyObject* rhnUnload ( hdrObject s  )  [static]

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]

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]

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]

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

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]

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 
)

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  ) 

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

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]

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

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

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

References _rpmts_debug.

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

static PyObject* rpmts_Clean ( rpmtsObject s  )  [static]

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

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

static PyObject* rpmts_CloseDB ( rpmtsObject s  )  [static]

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

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

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

static void rpmts_dealloc ( rpmtsObject s  )  [static]

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]

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

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

static PyObject* rpmts_GetKeys ( rpmtsObject s  )  [static]

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

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

static PyObject* rpmts_GetVSFlags ( rpmtsObject s  )  [static]

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

References rpmtsVSFlags(), and rpmtsObject_s::ts.

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

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

static PyObject* rpmts_IDTXglob ( rpmtsObject s  )  [static]

static PyObject* rpmts_IDTXload ( rpmtsObject s  )  [static]

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

static PyObject* rpmts_InitDB ( rpmtsObject s  )  [static]

Definition at line 699 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 1270 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]

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

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

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

static PyObject* rpmts_OpenDB ( rpmtsObject s  )  [static]

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

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

static PyObject* rpmts_Order ( rpmtsObject s  )  [static]

Definition at line 494 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 960 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 924 of file rpmts-py.c.

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

static rpmpsObject* rpmts_Problems ( rpmtsObject s  )  [static]

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

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

static PyObject* rpmts_RebuildDB ( rpmtsObject s  )  [static]

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

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

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

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

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

Definition at line 1537 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 902 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 1113 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 1135 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 871 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]

static PyObject* rpmts_VerifyDB ( rpmtsObject s  )  [static]

Definition at line 739 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]

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

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

long tagNumFromPyObject ( PyObject *  item  ) 

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

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

struct PyMethodDef rpmts_methods[] [static]

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

PyTypeObject rpmts_Type

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

Referenced by init_rpm().


Generated on Mon Jul 20 09:44:20 2009 for rpm by  doxygen 1.5.7.1