#include <alloca.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include <glob.h>
#include <dirent.h>
#include <locale.h>
#include "Python.h"
#include "rpmio_internal.h"
#include "rpmcli.h"
#include "misc.h"
#include "header_internal.h"
#include "upgrade.h"
Go to the source code of this file.
Data Structures | |
struct | FDlist_t |
struct | hdrObject_s |
struct | rpmdbMIObject_s |
struct | rpmdbObject_s |
struct | rpmtransObject_s |
struct | tsCallbackType |
Module: rpm | |
typedef struct FDlist_t | FDlist |
void | initrpm (void) |
PyObject* | rpmtransCreate (PyObject *self, PyObject *args) |
PyObject* | doAddMacro (PyObject *self, PyObject *args) |
PyObject* | doDelMacro (PyObject *self, PyObject *args) |
PyObject* | archScore (PyObject *self, PyObject *args) |
int | psGetArchScore (Header h) |
int | pkgCompareVer (void *first, void *second) |
void | pkgSort (struct pkgSet *psp) |
PyObject* | findUpgradeSet (PyObject *self, PyObject *args) |
PyObject* | rpmHeaderFromPackage (PyObject *self, PyObject *args) |
PyObject* | hdrLoad (PyObject *self, PyObject *args) |
PyObject* | rhnLoad (PyObject *self, PyObject *args) |
PyObject* | rpmInitDB (PyObject *self, PyObject *args) |
rpmdbObject* | rpmOpenDB (PyObject *self, PyObject *args) |
PyObject* | rebuildDB (PyObject *self, PyObject *args) |
PyObject* | rpmReadHeaders (FD_t fd) |
PyObject* | rpmHeaderFromFD (PyObject *self, PyObject *args) |
PyObject* | rpmHeaderFromFile (PyObject *self, PyObject *args) |
int | rpmMergeHeaders (PyObject *list, FD_t fd, int matchTag) |
This assumes the order of list matches the order of the new headers, and throws an exception if that isn't true. More... | |
PyObject* | rpmMergeHeadersFromFD (PyObject *self, PyObject *args) |
void | errorcb (void) |
PyObject* | errorSetCallback (PyObject *self, PyObject *args) |
PyObject* | errorString (PyObject *self, PyObject *args) |
PyObject* | versionCompare (PyObject *self, PyObject *args) |
PyObject* | labelCompare (PyObject *self, PyObject *args) |
PyObject* | checkSig (PyObject *self, PyObject *args) |
PyObject* | getTsHeader (PyObject *self, PyObject *args) |
PyObject* | setVerbosity (PyObject *self, PyObject *args) |
int | closeCallback (FILE *f) |
PyObject* | doFopen (PyObject *self, PyObject *args) |
PyObject* | errorCB = NULL |
PyObject * | errorData = NULL |
FDlist* | fdhead = NULL |
FDlist* | fdtail = NULL |
PyMethodDef | rpmModuleMethods [] |
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* | rhnUnload (hdrObject *s, PyObject *args) |
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) |
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) |
rpmdbMIObject* | py_rpmdbInitIterator (rpmdbObject *s, PyObject *args) |
PyObject* | rpmdbGetAttr (rpmdbObject *s, char *name) |
void | rpmdbDealloc (rpmdbObject *s) |
int | rpmdbLength (rpmdbObject *s) |
hdrObject* | rpmdbSubscript (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 |
Defines | |
#define | REGISTER_ENUM(val) |
Typedefs | |
typedef struct rpmdbObject_s | rpmdbObject |
typedef struct rpmdbMIObject_s | rpmdbMIObject |
typedef struct rpmtransObject_s | rpmtransObject |
typedef struct hdrObject_s | hdrObject |
Functions | |
Header | headerAllocated (Header h) |
int | mdfile (const char *fn, unsigned char *digest) |
int | rpmvercmp (const char *one, const char *two) |
Variables | |
int | _rpmio_debug |
PyObject* | pyrpmError |
Definition in file rpmmodule.c.
|
Value: PyDict_SetItemString(d, #val, o=PyInt_FromLong( val )); \ Py_DECREF(o); Referenced by initrpm().
|
|
Definition at line 2382 of file rpmmodule.c. |
|
Definition at line 1705 of file rpmmodule.c. |
|
Definition at line 2332 of file rpmmodule.c. |
|
Definition at line 2403 of file rpmmodule.c. |
|
Definition at line 1677 of file rpmmodule.c. |
|
Definition at line 1691 of file rpmmodule.c. |
|
Definition at line 2434 of file rpmmodule.c. |
|
Definition at line 2245 of file rpmmodule.c. |
|
Definition at line 2285 of file rpmmodule.c. |
|
Definition at line 2226 of file rpmmodule.c. |
|
Definition at line 1787 of file rpmmodule.c. |
|
Definition at line 2349 of file rpmmodule.c. |
|
Definition at line 1883 of file rpmmodule.c. |
|
Definition at line 26 of file rpmmodule.c. Referenced by hdrLoad(), rhnLoad(), and rhnUnload().
|
|
Definition at line 2512 of file rpmmodule.c. |
|
Definition at line 2301 of file rpmmodule.c. |
|
Referenced by handleOverlappedFiles(), and hdrVerifyFile().
|
|
Definition at line 1732 of file rpmmodule.c. |
|
Definition at line 1754 of file rpmmodule.c. Referenced by findUpgradeSet().
|
|
Definition at line 1719 of file rpmmodule.c. Referenced by pkgCompareVer().
|
|
Definition at line 2040 of file rpmmodule.c. |
|
Definition at line 1920 of file rpmmodule.c. |
|
Definition at line 2092 of file rpmmodule.c. |
|
Definition at line 2108 of file rpmmodule.c. |
|
Definition at line 1838 of file rpmmodule.c. |
|
Definition at line 1984 of file rpmmodule.c. |
|
This assumes the order of list matches the order of the new headers, and throws an exception if that isn't true.
Definition at line 2131 of file rpmmodule.c. Referenced by rpmMergeHeadersFromFD().
|
|
Definition at line 2192 of file rpmmodule.c. |
|
Definition at line 2008 of file rpmmodule.c. |
|
Definition at line 2050 of file rpmmodule.c. Referenced by rpmHeaderFromFD(), and rpmHeaderFromFile().
|
|
Definition at line 2368 of file rpmmodule.c. |
|
Definition at line 2291 of file rpmmodule.c. |
|
Definition at line 24 of file rpmmodule.c. |
|
Definition at line 2222 of file rpmmodule.c. |
|
Definition at line 2222 of file rpmmodule.c. |
|
Definition at line 2395 of file rpmmodule.c. |
|
Definition at line 2399 of file rpmmodule.c. |
|
Initial value: { { "TransactionSet", (PyCFunction) rpmtransCreate, METH_VARARGS, NULL }, { "addMacro", (PyCFunction) doAddMacro, METH_VARARGS, NULL }, { "delMacro", (PyCFunction) doDelMacro, METH_VARARGS, NULL }, { "archscore", (PyCFunction) archScore, METH_VARARGS, NULL }, { "findUpgradeSet", (PyCFunction) findUpgradeSet, METH_VARARGS, NULL }, { "headerFromPackage", (PyCFunction) rpmHeaderFromPackage, METH_VARARGS, NULL }, { "headerLoad", (PyCFunction) hdrLoad, METH_VARARGS, NULL }, { "rhnLoad", (PyCFunction) rhnLoad, METH_VARARGS, NULL }, { "initdb", (PyCFunction) rpmInitDB, METH_VARARGS, NULL }, { "opendb", (PyCFunction) rpmOpenDB, METH_VARARGS, NULL }, { "rebuilddb", (PyCFunction) rebuildDB, METH_VARARGS, NULL }, { "mergeHeaderListFromFD", (PyCFunction) rpmMergeHeadersFromFD, METH_VARARGS, NULL }, { "readHeaderListFromFD", (PyCFunction) rpmHeaderFromFD, METH_VARARGS, NULL }, { "readHeaderListFromFile", (PyCFunction) rpmHeaderFromFile, METH_VARARGS, NULL }, { "errorSetCallback", (PyCFunction) errorSetCallback, METH_VARARGS, NULL }, { "errorString", (PyCFunction) errorString, METH_VARARGS, NULL }, { "versionCompare", (PyCFunction) versionCompare, METH_VARARGS, NULL }, { "labelCompare", (PyCFunction) labelCompare, METH_VARARGS, NULL }, { "checksig", (PyCFunction) checkSig, METH_VARARGS, NULL }, { "getTransactionCallbackHeader", (PyCFunction) getTsHeader, METH_VARARGS, NULL }, { "setVerbosity", (PyCFunction) setVerbosity, METH_VARARGS, NULL }, { NULL } } Definition at line 2484 of file rpmmodule.c. |