PYTHON-C Language Bindings.


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  rpmdbObject_s
struct  rpmmiObject_s
struct  rpmrcObject_s
struct  rpmtsCallbackType_s

Class: rpm.hdr

static PyObject * hdrKeyList (hdrObject *s, PyObject *args)
static PyObject * hdrUnload (hdrObject *s, PyObject *args, PyObject *keywords)
static PyObject * hdrExpandFilelist (hdrObject *s, PyObject *args)
static PyObject * hdrCompressFilelist (hdrObject *s, PyObject *args)
static void mungeFilelist (Header h)
static PyObject * hdrFullFilelist (hdrObject *s, PyObject *args)
static PyObject * hdrSprintf (hdrObject *s, PyObject *args)
static void hdr_dealloc (hdrObject *s)
long tagNumFromPyObject (PyObject *item)
static PyObject * hdr_subscript (hdrObject *s, PyObject *item)
static struct PyMethodDef hdr_methods []
static PyMappingMethods hdr_as_mapping
PyTypeObject hdr_Type

Class: Rpmfd

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)
static struct PyMethodDef rpmfd_methods []
PyTypeObject rpmfd_Type

Class: Rpmmi

static void rpmmi_dealloc (rpmmiObject *s)
static struct PyMethodDef rpmmi_methods []
PyTypeObject rpmmi_Type

Class: Rpmts

static PyObject * rpmts_Debug (rpmtsObject *s, PyObject *args)
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)
static PyObject * rpmts_AddErase (rpmtsObject *s, PyObject *args)
static int rpmts_SolveCallback (rpmts ts, rpmds ds, const void *data)
static PyObject * rpmts_Check (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_Order (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_Clean (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_IDTXload (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_IDTXglob (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_Rollback (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_OpenDB (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_CloseDB (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_InitDB (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_RebuildDB (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_VerifyDB (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_HdrFromFdno (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_HdrCheck (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_SetVSFlags (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_SetColor (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_PgpPrtPkts (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_PgpImportPubkey (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_GetKeys (rpmtsObject *s, PyObject *args)
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)
static PyObject * rpmts_SetProbFilter (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_Run (rpmtsObject *s, PyObject *args)
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 rpmmiObjectrpmts_Match (rpmtsObject *s, PyObject *args)
static PyObject * rpmts_getattro (PyObject *o, PyObject *n)
rpmtsObjectrpmts_Create (PyObject *self, PyObject *args)
static struct PyMethodDef rpmts_methods []
PyTypeObject rpmts_Type
static char rpmts_doc []

Class: Rpmfts

static struct PyMethodDef rpmfts_methods []
PyTypeObject rpmfts_Type

Class: rpm.rc

PyTypeObject rpmrc_Type

Class: Rpmte

static struct PyMethodDef rpmte_methods []
PyTypeObject rpmte_Type

Typedefs

typedef hdrObject_s hdrObject
typedef PyObject * pyrpmError
typedef rpmdbObject_s rpmdbObject
typedef rpmmiObject_s rpmmiObject
typedef rpmrcObject_s rpmrcObject

Typedef Documentation

typedef struct hdrObject_s hdrObject
 

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

typedef PyObject* pyrpmError
 

Definition at line 17 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 void hdr_dealloc hdrObject s  )  [static]
 

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

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

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

Definition at line 463 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, rpmHeaderFormats, rpmHeaderGetEntry(), RPMTAG_ARCH, 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_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, headerSprintfExtension_s::u, and xstrcasecmp().

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

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

References compressFilelist(), and hdrObject_s::h.

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

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

References expandFilelist(), and hdrObject_s::h.

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

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

References hdrObject_s::h, and mungeFilelist().

static PyObject* hdrKeyList hdrObject s,
PyObject *  args
[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.

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

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

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

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

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

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

static void mungeFilelist Header  h  )  [static]
 

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

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

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

References _rpmfd_debug.

static void rpmfd_dealloc rpmfdObject s  )  [static]
 

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

References Fclose(), and rpmfdObject_s::fd.

static void rpmfd_free rpmfdObject s  )  [static]
 

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

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

Referenced by rpmfd_new().

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

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

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

static void rpmmi_dealloc rpmmiObject s  )  [static]
 

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

References rpmmiObject_s::mi, and rpmdbFreeIterator().

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

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

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

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

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

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

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

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

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

References _rpmts_debug.

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

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

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

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

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

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

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

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

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

rpmtsObject* rpmts_Create PyObject *  self,
PyObject *  args
 

Definition at line 1591 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 1408 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
[static]
 

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

References _rpmts_debug, and rpmtsObject_s::ts.

static void rpmts_free rpmtsObject s  )  [static]
 

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

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

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

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

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

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

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

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

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

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

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

Definition at line 557 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, and IDT_s::val.

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

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

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

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

Definition at line 1457 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,
PyObject *  args
[static]
 

Definition at line 684 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 1208 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
[static]
 

Definition at line 1265 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 1514 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 1242 of file rpmts-py.c.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 607 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
[static]
 

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

References _free(), _rpmts_debug, rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, rpmtsObject_s::ignoreSet, rpmps_s::probs, rpmtsCallbackType_s::pythonError, rpmGetPath(), rpmProblemString(), rpmpsFree(), rpmsxFree(), rpmsxNew(), RPMTRANS_FLAG_NOCONTEXTS, rpmtsCallback(), rpmtsProblems(), rpmtsREContext(), rpmtsRun(), rpmtsSetNotifyCallback(), rpmtsSetREContext(), rpmProblem_s::str1, rpmtsObject_s::ts, rpmtsCallbackType_s::tso, rpmProblem_s::type, and rpmProblem_s::ulong1.

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 856 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 317 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,
PyObject *  args
[static]
 

Definition at line 728 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 187 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 998 of file rpmts-py.c.

References _rpmts_debug, Fclose(), fdDup(), headerNVR(), RPMCALLBACK_INST_CLOSE_FILE, and RPMCALLBACK_INST_OPEN_FILE.

Referenced by rpmts_Run().

long tagNumFromPyObject PyObject *  item  ) 
 

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

References name, rpmTagTable, rpmTagTableSize, headerTagTableEntry_s::val, and 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 648 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 392 of file header-py.c.

PyTypeObject hdr_Type
 

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

Referenced by hdr_Wrap(), initrpm(), rpmts_AddInstall(), and versionCompare().

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.

PyTypeObject rpmfd_Type
 

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

Referenced by initrpm(), and 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 283 of file rpmfts-py.c.

PyTypeObject rpmfts_Type
 

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

Referenced by initrpm().

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 186 of file rpmmi-py.c.

PyTypeObject rpmmi_Type
 

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

Referenced by initrpm(), and rpmmi_Wrap().

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

Referenced by initrpm().

struct PyMethodDef rpmte_methods[] [static]
 

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

PyTypeObject rpmte_Type
 

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

Referenced by initrpm(), and rpmte_Wrap().

char rpmts_doc[] [static]
 

Initial value:

""

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

struct PyMethodDef rpmts_methods[] [static]
 

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

PyTypeObject rpmts_Type
 

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

Referenced by initrpm().


Generated on Fri Feb 24 08:33:50 2006 for rpm by  doxygen 1.4.5