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

class | header
| A python header object represents an RPM package header. More...
class | rpmtrans
| A python rpmtrans object represents an RPM transaction set. More...
class | rpmtrans
| A python rpmtrans object represents an RPM transaction set. More...
struct | rpmtransObject_s
struct | rpmtransObject_s
struct | tsCallbackType

## 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
PyMethodDef | rpmtransMethods []
PyTypeObject | rpmtransType

## Module: rpm

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

## Typedefs

typedef rpmtransObject_s | rpmtransObject

## Typedef Documentation

typedef struct rpmtransObject_s rpmtransObject

| Definition at line 43 of file rpmmodule.c.

## Function Documentation

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

| Definition at line 342 of file rpmmodule.c. References rpmtransGetKeys, and rpmtransObject_s::ts.

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

| Definition at line 212 of file rpmmodule.c. References rpmtransObject_s::keyList, rpmtransAddPackage, rpmtransAvailablePackage, and rpmtransObject_s::ts.

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

| Definition at line 558 of file rpmmodule.c. References rpmtransObject_s::dbo, rpmtransObject_s::keyList, rpmtransCreateSet, rpmtransType, rpmtransObject_s::scriptFd, and rpmtransObject_s::ts.

void rpmtransDealloc | ( | PyObject * | o | ) | `[static]`

| Definition at line 493 of file rpmmodule.c. References rpmtransObject_s::dbo, Fclose, rpmtransObject_s::keyList, rpmtransFree, rpmtransObject_s::scriptFd, and rpmtransObject_s::ts.

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

| Definition at line 280 of file rpmmodule.c. References rpmdepCheck, rpmdepFreeConflicts, rpmDependencyConflict_s::suggestedPackages, and rpmtransObject_s::ts.

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

| Definition at line 487 of file rpmmodule.c. References rpmtransMethods.

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

| Definition at line 331 of file rpmmodule.c. References rpmdepOrder, and rpmtransObject_s::ts.

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

| Definition at line 249 of file rpmmodule.c. References rpmtransObject_s::dbo, rpmdbFreeIterator, rpmdbGetIteratorCount, rpmdbGetIteratorOffset, RPMDBI_LABEL, rpmdbInitIterator, rpmdbNextIterator, rpmtransRemovePackage, and rpmtransObject_s::ts.

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

| Definition at line 427 of file rpmmodule.c. References tsCallbackType::cb, tsCallbackType::data, rpmProblemSet_s::numProblems, rpmProblemSet_s::probs, tsCallbackType::pythonError, rpmProblemSetFree, rpmProblemString, rpmRunTransactions, rpmProblem_s::str1, rpmtransObject_s::ts, tsCallback, rpmProblem_s::type, and rpmProblem_s::ulong1.

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

| Definition at line 509 of file rpmmodule.c. References fdDup, rpmtransSetScriptFd, rpmtransObject_s::scriptFd, and rpmtransObject_s::ts.

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 381 of file rpmmodule.c. References tsCallbackType::cb, tsCallbackType::data, Fclose, fdDup, and tsCallbackType::pythonError. Referenced by rpmtransRun.

## Variable Documentation

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 475 of file rpmmodule.c.

Referenced by rpmtransGetAttr.

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 532 of file rpmmodule.c.

Referenced by initrpm, and rpmtransCreate.

Header transactionSetHeader = NULL`[static]`

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

Definition at line 377 of file rpmmodule.c.