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

PYTHON.


Files

file  hash.c
file  hash.h
file  rpmmodule.c
file  upgrade.c
file  upgrade.h

Data Structures

struct  hdrObject_s
struct  hdrObject_s
class  header
 A python header object represents an RPM package header. More...

class  rpmdb
 A python rpmdb object represents an RPM database. More...

class  rpmdbMatchIterator
 A python rpmdbMatchIterator object represents the result of an RPM database query. More...

struct  rpmdbMIObject_s
struct  rpmdbObject_s
struct  rpmdbObject_s
class  rpmtrans
 A python rpmtrans object represents an RPM transaction set. More...

struct  rpmtransObject_s
struct  rpmtransObject_s
struct  tsCallbackType

Class: header

PyObject* hdrKeyList (hdrObject *s, PyObject *args)
PyObject* hdrUnload (hdrObject *s, PyObject *args, PyObject *keywords)
PyObject* hdrVerifyFile (hdrObject *s, PyObject *args)
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* hdrGetAttr (hdrObject *s, char *name)
void hdrDealloc (hdrObject *s)
long tagNumFromPyObject (PyObject *item)
PyObject* hdrSubscript (hdrObject *s, PyObject *item)
PyObject* rhnUnload (hdrObject *s, PyObject *args)
struct PyMethodDef hdrMethods []
PyMappingMethods hdrAsMapping
PyTypeObject hdrType

Class: rpmdbMatchIterator

PyObject* rpmdbMINext (rpmdbMIObject *s, PyObject *args)
PyObject* rpmdbMIGetAttr (rpmdbObject *s, char *name)
void rpmdbMIDealloc (rpmdbMIObject *s)
struct PyMethodDef rpmdbMIMethods []
PyTypeObject rpmdbMIType

Class: rpmdb

PyObject* rpmdbFirst (rpmdbObject *s, PyObject *args)
PyObject* rpmdbNext (rpmdbObject *s, PyObject *args)
PyObject* handleDbResult (rpmdbMatchIterator mi)
PyObject* rpmdbByFile (rpmdbObject *s, PyObject *args)
PyObject* rpmdbByName (rpmdbObject *s, PyObject *args)
PyObject* rpmdbByProvides (rpmdbObject *s, PyObject *args)
rpmdbMIObjectpy_rpmdbInitIterator (rpmdbObject *s, PyObject *args)
PyObject* rpmdbGetAttr (rpmdbObject *s, char *name)
void rpmdbDealloc (rpmdbObject *s)
int rpmdbLength (rpmdbObject *s)
hdrObjectrpmdbSubscript (rpmdbObject *s, PyObject *key)
struct PyMethodDef rpmdbMethods []
PyMappingMethods rpmdbAsMapping
PyTypeObject rpmdbType

Class: rpmtrans

PyObject* rpmtransAdd (rpmtransObject *s, PyObject *args)
PyObject* rpmtransRemove (rpmtransObject *s, PyObject *args)
PyObject* rpmtransDepCheck (rpmtransObject *s, PyObject *args)
PyObject* rpmtransOrder (rpmtransObject *s, PyObject *args)
PyObject* py_rpmtransGetKeys (rpmtransObject *s, PyObject *args)
void* tsCallback (const void *hd, const rpmCallbackType what, const unsigned long amount, const unsigned long total, const void *pkgKey, rpmCallbackData data)
PyObject* rpmtransRun (rpmtransObject *s, PyObject *args)
PyObject* rpmtransGetAttr (rpmtransObject *o, char *name)
void rpmtransDealloc (PyObject *o)
int rpmtransSetAttr (rpmtransObject *o, char *name, PyObject *val)
Header transactionSetHeader = NULL
struct PyMethodDef rpmtransMethods []
PyTypeObject rpmtransType

Module: rpm

PyObject* rpmtransCreate (PyObject *self, PyObject *args)

Typedefs

typedef struct rpmdbObject_s rpmdbObject
typedef struct rpmdbMIObject_s rpmdbMIObject
typedef struct rpmtransObject_s rpmtransObject
typedef struct hdrObject_s hdrObject

Variables

PyObject* pyrpmError

Typedef Documentation

typedef struct hdrObject_s hdrObject
 

Definition at line 58 of file rpmmodule.c.

typedef struct rpmdbMIObject_s rpmdbMIObject
 

Definition at line 50 of file rpmmodule.c.

typedef struct rpmdbObject_s rpmdbObject
 

Definition at line 46 of file rpmmodule.c.

typedef struct rpmtransObject_s rpmtransObject
 

Definition at line 54 of file rpmmodule.c.


Function Documentation

PyObject * handleDbResult ( rpmdbMatchIterator mi ) [static]
 

Definition at line 1011 of file rpmmodule.c.

Referenced by rpmdbByFile(), rpmdbByName(), and rpmdbByProvides().

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

Definition at line 418 of file rpmmodule.c.

void hdrDealloc ( hdrObject * s ) [static]
 

Definition at line 568 of file rpmmodule.c.

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

Definition at line 409 of file rpmmodule.c.

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

Definition at line 512 of file rpmmodule.c.

PyObject * hdrGetAttr ( hdrObject * s,
char * name ) [static]
 

Definition at line 562 of file rpmmodule.c.

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

Definition at line 134 of file rpmmodule.c.

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

Definition at line 524 of file rpmmodule.c.

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

Definition at line 597 of file rpmmodule.c.

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

Definition at line 167 of file rpmmodule.c.

PyObject * hdrVerifyFile ( hdrObject * s,
PyObject * args ) [static]
 

Returns a list of these tuples for each item that failed: (attr_name, correctValue, currentValue) It should be passed the file number to verify.

Definition at line 203 of file rpmmodule.c.

void mungeFilelist ( Header h ) [static]
 

Definition at line 428 of file rpmmodule.c.

Referenced by hdrFullFilelist().

rpmdbMIObject * py_rpmdbInitIterator ( rpmdbObject * s,
PyObject * args ) [static]
 

Definition at line 1061 of file rpmmodule.c.

PyObject * py_rpmtransGetKeys ( rpmtransObject * s,
PyObject * args ) [static]
 

Definition at line 1438 of file rpmmodule.c.

PyObject * rhnUnload ( hdrObject * s,
PyObject * args ) [static]
 

Definition at line 452 of file rpmmodule.c.

PyObject * rpmdbByFile ( rpmdbObject * s,
PyObject * args ) [static]
 

Definition at line 1030 of file rpmmodule.c.

PyObject * rpmdbByName ( rpmdbObject * s,
PyObject * args ) [static]
 

Definition at line 1040 of file rpmmodule.c.

PyObject * rpmdbByProvides ( rpmdbObject * s,
PyObject * args ) [static]
 

Definition at line 1050 of file rpmmodule.c.

void rpmdbDealloc ( rpmdbObject * s ) [static]
 

Definition at line 1110 of file rpmmodule.c.

PyObject * rpmdbFirst ( rpmdbObject * s,
PyObject * args ) [static]
 

Definition at line 950 of file rpmmodule.c.

PyObject * rpmdbGetAttr ( rpmdbObject * s,
char * name ) [static]
 

Definition at line 1104 of file rpmmodule.c.

int rpmdbLength ( rpmdbObject * s ) [static]
 

Definition at line 1124 of file rpmmodule.c.

void rpmdbMIDealloc ( rpmdbMIObject * s ) [static]
 

Definition at line 852 of file rpmmodule.c.

PyObject * rpmdbMIGetAttr ( rpmdbObject * s,
char * name ) [static]
 

Definition at line 846 of file rpmmodule.c.

PyObject * rpmdbMINext ( rpmdbMIObject * s,
PyObject * args ) [static]
 

Definition at line 815 of file rpmmodule.c.

PyObject * rpmdbNext ( rpmdbObject * s,
PyObject * args ) [static]
 

Definition at line 989 of file rpmmodule.c.

hdrObject * rpmdbSubscript ( rpmdbObject * s,
PyObject * key ) [static]
 

Definition at line 1142 of file rpmmodule.c.

PyObject * rpmtransAdd ( rpmtransObject * s,
PyObject * args ) [static]
 

Definition at line 1323 of file rpmmodule.c.

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

Definition at line 1653 of file rpmmodule.c.

void rpmtransDealloc ( PyObject * o ) [static]
 

Definition at line 1588 of file rpmmodule.c.

PyObject * rpmtransDepCheck ( rpmtransObject * s,
PyObject * args ) [static]
 

Definition at line 1388 of file rpmmodule.c.

PyObject * rpmtransGetAttr ( rpmtransObject * o,
char * name ) [static]
 

Definition at line 1582 of file rpmmodule.c.

PyObject * rpmtransOrder ( rpmtransObject * s,
PyObject * args ) [static]
 

Definition at line 1427 of file rpmmodule.c.

PyObject * rpmtransRemove ( rpmtransObject * s,
PyObject * args ) [static]
 

Definition at line 1357 of file rpmmodule.c.

PyObject * rpmtransRun ( rpmtransObject * s,
PyObject * args ) [static]
 

Definition at line 1522 of file rpmmodule.c.

int rpmtransSetAttr ( rpmtransObject * o,
char * name,
PyObject * val ) [static]
 

Definition at line 1604 of file rpmmodule.c.

long tagNumFromPyObject ( PyObject * item ) [static]
 

Definition at line 579 of file rpmmodule.c.

Referenced by hdrSubscript(), and py_rpmdbInitIterator().

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

Definition at line 1477 of file rpmmodule.c.


Variable Documentation

PyMappingMethods hdrAsMapping [static]
 

Initial value:

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

Definition at line 756 of file rpmmodule.c.

struct PyMethodDef hdrMethods [static]
 

Initial value:

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

Definition at line 548 of file rpmmodule.c.

PyTypeObject hdrType [static]
 

Initial value:

 {
        PyObject_HEAD_INIT(NULL)
        0,                              
        "header",                       
        sizeof(hdrObject),              
        0,                              
        (destructor) hdrDealloc,        
        0,                              
        (getattrfunc) hdrGetAttr,       
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        &hdrAsMapping,                  
}

Definition at line 764 of file rpmmodule.c.

PyObject * pyrpmError [static]
 

Definition at line 62 of file rpmmodule.c.

PyMappingMethods rpmdbAsMapping [static]
 

Initial value:

 {
        (inquiry) rpmdbLength,          
        (binaryfunc) rpmdbSubscript,    
        (objobjargproc)0,               
}

Definition at line 1176 of file rpmmodule.c.

struct PyMethodDef rpmdbMIMethods [static]
 

Initial value:

 {
        {"next",            (PyCFunction) rpmdbMINext,  1 },
        {NULL,          NULL}           
}

Definition at line 839 of file rpmmodule.c.

PyTypeObject rpmdbMIType [static]
 

Initial value:

 {
        PyObject_HEAD_INIT(NULL)
        0,                              
        "rpmdbMatchIterator",           
        sizeof(rpmdbMIObject),  
        0,                              
        (destructor) rpmdbMIDealloc,    
        0,                              
        (getattrfunc) rpmdbMIGetAttr,   
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
}

Definition at line 862 of file rpmmodule.c.

struct PyMethodDef rpmdbMethods [static]
 

Initial value:

 {
        {"firstkey",        (PyCFunction) rpmdbFirst,   1 },
        {"nextkey",         (PyCFunction) rpmdbNext,    1 },
        {"findbyfile",      (PyCFunction) rpmdbByFile, 1 },
        {"findbyname",      (PyCFunction) rpmdbByName, 1 },
        {"findbyprovides",  (PyCFunction) rpmdbByProvides, 1 },
        {"match",           (PyCFunction) py_rpmdbInitIterator, 1 },
        {NULL,          NULL}           
}

Definition at line 1092 of file rpmmodule.c.

PyTypeObject rpmdbType [static]
 

Initial value:

 {
        PyObject_HEAD_INIT(NULL)
        0,                              
        "rpmdb",                        
        sizeof(rpmdbObject),            
        0,                              
        (destructor) rpmdbDealloc,      
        0,                              
        (getattrfunc) rpmdbGetAttr,     
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              

        &rpmdbAsMapping,                



}

Definition at line 1185 of file rpmmodule.c.

struct PyMethodDef rpmtransMethods [static]
 

Initial value:

 {
        {"add",         (PyCFunction) rpmtransAdd,      1 },
        {"remove",      (PyCFunction) rpmtransRemove,   1 },
        {"depcheck",    (PyCFunction) rpmtransDepCheck, 1 },
        {"order",       (PyCFunction) rpmtransOrder,    1 },
        {"getKeys",     (PyCFunction) py_rpmtransGetKeys, 1 },
        {"run",         (PyCFunction) rpmtransRun, 1 },
        {NULL,          NULL}           
}

Definition at line 1570 of file rpmmodule.c.

PyTypeObject rpmtransType [static]
 

Initial value:

 {
        PyObject_HEAD_INIT(NULL)
        0,                              
        "rpmtrans",                     
        sizeof(rpmtransObject),         
        0,                              
        (destructor) rpmtransDealloc,   
        0,                              
        (getattrfunc) rpmtransGetAttr,  
        (setattrfunc) rpmtransSetAttr,  
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
}

Definition at line 1627 of file rpmmodule.c.

Header transactionSetHeader = NULL [static]
 

Todo:
Remove, there's no headerLink refcount on the pointer.

Definition at line 1473 of file rpmmodule.c.


Generated at Fri Feb 15 10:36:07 2002 for rpm by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001