rpm
5.4.15
|
#include "system-py.h"
#include <rpmio_internal.h>
#include <rpmcb.h>
#include <rpmpgp.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include <pkgio.h>
#include <rpmdb.h>
#include <rpmbuild.h>
#include <rpmcli.h>
#include <rpmrollback.h>
#include "header-py.h"
#include "rpmds-py.h"
#include "rpmfi-py.h"
#include "rpmmi-py.h"
#include "rpmps-py.h"
#include "rpmte-py.h"
#include "spec-py.h"
#include "rpmts-py.h"
#include "debug.h"
Go to the source code of this file.
Data Structures | |
struct | rpmtsCallbackType_s |
Macros | |
#define | _RPMPS_INTERNAL /* XXX almost (but not quite) opaque. */ |
#define | _RPMTS_INTERNAL /* XXX expose rpmtsSetScriptFd */ |
#define | _RPMROLLBACK_INTERNAL /* XXX IDTX et al */ |
#define | rpmtsfree() rpmioFreePoolItem() |
Functions | |
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) |
PyObject * | rpmts_Create (PyObject *s, PyObject *args, PyObject *kwds) |
Class: Rpmts | |
static void | rpmts_Die (PyObject *cb) |
static int | rpmts_SolveCallback (rpmts ts, rpmds ds, const void *data) |
static void * | rpmtsCallback (const void *hd, const rpmCallbackType what, const rpmuint64_t amount, const rpmuint64_t total, fnpyKey pkgKey, rpmCallbackData data) |
static PyObject * | rpmts_iter (rpmtsObject *s) |
static PyObject * | rpmts_iternext (rpmtsObject *s) |
static PyObject * | rpmts_Debug (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_AddInstall (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_AddErase (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_Check (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_Order (rpmtsObject *s) |
static PyObject * | rpmts_Clean (rpmtsObject *s) |
static PyObject * | rpmts_IDTXload (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_IDTXglob (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_Rollback (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_OpenDB (rpmtsObject *s) |
static PyObject * | rpmts_CloseDB (rpmtsObject *s) |
static PyObject * | rpmts_InitDB (rpmtsObject *s) |
static PyObject * | rpmts_RebuildDB (rpmtsObject *s) |
static PyObject * | rpmts_VerifyDB (rpmtsObject *s) |
static PyObject * | rpmts_HdrFromFdno (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_HdrCheck (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_GetVSFlags (rpmtsObject *s) |
static PyObject * | rpmts_SetVSFlags (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_SetColor (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_PgpPrtPkts (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_PgpImportPubkey (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_SetFlags (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_SetDFlags (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_SetProbFilter (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static rpmpsObject * | rpmts_Problems (rpmtsObject *s) |
static PyObject * | rpmts_Run (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static PyObject * | rpmts_Next (rpmtsObject *s) |
static specObject * | spec_Parse (rpmtsObject *s, PyObject *args, PyObject *kwds) |
static rpmmiObject * | rpmts_Match (rpmtsObject *s, PyObject *args, PyObject *kwds) |
Variables | |
int | _rpmts_debug |
static struct PyMethodDef | rpmts_methods [] |
static char | rpmts_doc [] |
PyTypeObject | rpmts_Type |
#define _RPMPS_INTERNAL /* XXX almost (but not quite) opaque. */ |
Definition at line 10 of file rpmts-py.c.
#define _RPMROLLBACK_INTERNAL /* XXX IDTX et al */ |
Definition at line 22 of file rpmts-py.c.
#define _RPMTS_INTERNAL /* XXX expose rpmtsSetScriptFd */ |
Definition at line 18 of file rpmts-py.c.
#define rpmtsfree | ( | ) | rpmioFreePoolItem() |
Definition at line 37 of file rpmts-py.c.
|
static |
Definition at line 454 of file rpmts-py.c.
References _rpmts_debug, name, pyrpmError, RPMDBI_PACKAGES, rpmmiCount(), rpmmiFree(), rpmmiInstance(), rpmmiNext(), RPMTAG_NVRA, rpmtsAddEraseElement(), rpmtsInitIterator(), and rpmtsObject_s::ts.
|
static |
Definition at line 410 of file rpmts-py.c.
References _rpmts_debug, hdr_Type, hdrGetHeader(), key, rpmtsObject_s::keyList, rpmtsAddInstallElement(), and rpmtsObject_s::ts.
|
static |
Definition at line 1594 of file rpmts-py.c.
References _rpmts_debug.
|
static |
Definition at line 515 of file rpmts-py.c.
References _free(), _rpmts_debug, rpmtsCallbackType_s::_save, b, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::dso, i, key, RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, RPMPROB_BADRELOCATE, rpmProblemGetAltNEVR(), rpmProblemGetPkgNEVR(), rpmProblemGetType(), rpmProblemKey(), rpmpsFree(), rpmpsFreeIterator(), rpmpsInitIterator(), rpmpsNextIterator(), rpmpsProblem(), RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, rpmts_SolveCallback(), rpmtsCheck, rpmtsProblems(), rpmtsSetSolveCallback(), rpmtsSolve(), rpmtsObject_s::ts, rpmtsCallbackType_s::tso, and xstrdup().
|
static |
Definition at line 661 of file rpmts-py.c.
References _rpmts_debug, rpmtsClean(), and rpmtsObject_s::ts.
|
static |
Definition at line 836 of file rpmts-py.c.
References _rpmts_debug, rpmtsCloseDB(), rpmtsSetDBMode(), and rpmtsObject_s::ts.
PyObject* rpmts_Create | ( | PyObject * | s, |
PyObject * | args, | ||
PyObject * | kwds | ||
) |
Definition at line 1699 of file rpmts-py.c.
|
static |
Definition at line 1520 of file rpmts-py.c.
References _rpmts_debug, Fclose(), rpmtsObject_s::keyList, rpmtsFree(), rpmtsGetRdb(), rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.
|
static |
Definition at line 390 of file rpmts-py.c.
References _rpmts_debug, and rpmtsObject_s::ts.
|
static |
Definition at line 183 of file rpmts-py.c.
References _, EXIT_FAILURE, rpmdbCheckTerminate(), rpmlog(), and RPMLOG_ERR.
Referenced by rpmts_SolveCallback(), and rpmtsCallback().
|
static |
Definition at line 1574 of file rpmts-py.c.
References _rpmts_debug, Fclose(), rpmtsObject_s::keyList, rpmtsFree(), rpmtsGetRdb(), rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.
|
static |
Definition at line 1029 of file rpmts-py.c.
References rpmtsVSFlags(), and rpmtsObject_s::ts.
|
static |
Definition at line 968 of file rpmts-py.c.
References _free(), _rpmts_debug, headerCheck(), pgpDigFree(), pgpDigNew(), pyrpmError, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTTRUSTED, RPMRC_OK, rpmtsVSFlags(), and rpmtsObject_s::ts.
|
static |
Definition at line 914 of file rpmts-py.c.
References _rpmts_debug, Fclose(), fdDup(), hdr_Wrap(), headerFree(), pyrpmError, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, rpmReadPackageFile(), and rpmtsObject_s::ts.
|
static |
Definition at line 727 of file rpmts-py.c.
References _free(), _rpmts_debug, hdr_Wrap(), i, IDTXfree(), IDTXglob(), rpmExpand(), RPMTAG_REMOVETID, and rpmtsObject_s::ts.
|
static |
Definition at line 677 of file rpmts-py.c.
References _rpmts_debug, hdr_Wrap(), i, IDTXfree(), IDTXload(), RPMTAG_INSTALLTID, and rpmtsObject_s::ts.
|
static |
Definition at line 1564 of file rpmts-py.c.
|
static |
Definition at line 854 of file rpmts-py.c.
References _rpmts_debug, rpmtsCloseDB(), rpmtsInitDB(), and rpmtsObject_s::ts.
|
static |
Definition at line 335 of file rpmts-py.c.
References _rpmts_debug, and rpmtsObject_s::ts.
|
static |
Definition at line 351 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 |
Definition at line 1359 of file rpmts-py.c.
References _rpmts_debug, key, len, RPMDBI_PACKAGES, rpmmi_Wrap(), rpmtsGetRdb(), rpmtsInitIterator(), rpmtsOpenDB(), tagNumFromPyObject(), and rpmtsObject_s::ts.
|
static |
Definition at line 1606 of file rpmts-py.c.
References _rpmts_debug, rpmtsObject_s::ignoreSet, rpmtsObject_s::keyList, rpmExpandNumeric(), rpmtsCreate(), rpmtsGetRdb(), rpmtsSetRootDir(), rpmtsSetVSFlags(), rpmtsObject_s::scriptFd, rpmtsObject_s::ts, rpmtsObject_s::tsi, rpmtsObject_s::tsiFilter, and vsflags.
|
static |
Definition at line 1304 of file rpmts-py.c.
References _rpmts_debug, rpmts_iternext(), and rpmtsObject_s::ts.
|
static |
Definition at line 818 of file rpmts-py.c.
References _rpmts_debug, rpmtsDBMode(), rpmtsOpenDB(), rpmtsSetDBMode(), and rpmtsObject_s::ts.
|
static |
Definition at line 641 of file rpmts-py.c.
References _rpmts_debug, rpmtsOrder, and rpmtsObject_s::ts.
|
static |
Definition at line 1118 of file rpmts-py.c.
References _rpmts_debug, pyrpmError, rpmcliImportPubkey(), and rpmtsObject_s::ts.
|
static |
Definition at line 1083 of file rpmts-py.c.
References _rpmts_debug, pgpPrtPkts(), pyrpmError, and rpmtsObject_s::ts.
|
static |
Definition at line 1221 of file rpmts-py.c.
References _rpmts_debug, rpmps_Wrap(), rpmtsProblems(), and rpmtsObject_s::ts.
|
static |
Definition at line 874 of file rpmts-py.c.
References _rpmts_debug, rpmtsRebuildDB(), and rpmtsObject_s::ts.
|
static |
Definition at line 780 of file rpmts-py.c.
References _rpmts_debug, alloca(), INSTALL_FRESHEN, INSTALL_INSTALL, INSTALL_UPGRADE, rpmQVKArguments_s::installInterfaceFlags, rpmQVKArguments_s::probFilter, rpmQVKArguments_s::qva_flags, rpmQVKArguments_s::rbtid, rpmQVKArguments_s::relocations, RPMPROB_FILTER_OLDPACKAGE, rpmRollback(), RPMTRANS_FLAG_NOFDIGESTS, rpmtsSetFlags(), rpmQVKArguments_s::transFlags, rpmtsObject_s::ts, VERIFY_DIGEST, VERIFY_HDRCHK, and VERIFY_SIGNATURE.
|
static |
Definition at line 1234 of file rpmts-py.c.
References _rpmts_debug, rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, rpmtsCallbackType_s::dso, rpmtsObject_s::ignoreSet, rpmProblemGetDiskNeed(), rpmProblemGetStr(), rpmProblemGetType(), rpmProblemString(), rpmpsFree(), rpmpsFreeIterator(), rpmpsInitIterator(), rpmpsNextIterator(), rpmpsProblem(), rpmtsCallback(), rpmtsProblems(), rpmtsRun, rpmtsSetNotifyCallback(), rpmtsObject_s::ts, and rpmtsCallbackType_s::tso.
|
static |
Definition at line 1538 of file rpmts-py.c.
References fdDup(), name, rpmtsSetScriptFd(), rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.
|
static |
Definition at line 1061 of file rpmts-py.c.
References _rpmts_debug, rpmtsSetColor(), and rpmtsObject_s::ts.
|
static |
Definition at line 1175 of file rpmts-py.c.
References _rpmts_debug, rpmtsSetDFlags(), and rpmtsObject_s::ts.
|
static |
Definition at line 1153 of file rpmts-py.c.
References _rpmts_debug, rpmtsSetFlags(), and rpmtsObject_s::ts.
|
static |
Definition at line 1197 of file rpmts-py.c.
References _rpmts_debug, rpmtsObject_s::ignoreSet, and rpmtsObject_s::ts.
|
static |
Definition at line 1038 of file rpmts-py.c.
References _rpmts_debug, rpmtsSetVSFlags(), rpmtsObject_s::ts, and vsflags.
Definition at line 199 of file rpmts-py.c.
References _rpmts_debug, rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::dso, rpmds_Wrap(), rpmdsDNEVR(), rpmts_Die(), and rpmtsCallbackType_s::tso.
Referenced by rpmts_Check().
|
static |
Definition at line 894 of file rpmts-py.c.
References _rpmts_debug, rpmtsVerifyDB(), and rpmtsObject_s::ts.
|
static |
Definition at line 239 of file rpmts-py.c.
References _free(), _rpmts_debug, rpmtsCallbackType_s::_save, alloca(), rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, data, Fclose(), fdDup(), fdSetOpen(), Fileno(), headerGet(), _HE_s::p, rpmDataType_u::ptr, RPMCALLBACK_INST_CLOSE_FILE, RPMCALLBACK_INST_OPEN_FILE, RPMTAG_NAME, rpmts_Die(), rpmDataType_u::str, and _HE_s::tag.
Referenced by rpmts_Run().
|
static |
Definition at line 1326 of file rpmts-py.c.
References parseSpec(), pyrpmError, rpmExpandNumeric(), rpmtsSpec(), spec_Wrap(), and rpmtsObject_s::ts.
int _rpmts_debug |
Definition at line 93 of file rpmts.c.
Referenced by rpmts_AddErase(), rpmts_AddInstall(), rpmts_alloc(), rpmts_Check(), rpmts_Clean(), rpmts_CloseDB(), rpmts_dealloc(), rpmts_Debug(), rpmts_free(), rpmts_HdrCheck(), rpmts_HdrFromFdno(), rpmts_IDTXglob(), rpmts_IDTXload(), rpmts_InitDB(), rpmts_iter(), rpmts_iternext(), rpmts_Match(), rpmts_new(), rpmts_Next(), rpmts_OpenDB(), rpmts_Order(), rpmts_PgpImportPubkey(), rpmts_PgpPrtPkts(), rpmts_Problems(), rpmts_RebuildDB(), rpmts_Rollback(), rpmts_Run(), rpmts_SetColor(), rpmts_SetDFlags(), rpmts_SetFlags(), rpmts_SetProbFilter(), rpmts_SetVSFlags(), rpmts_SolveCallback(), rpmts_VerifyDB(), and rpmtsCallback().
|
static |
Definition at line 1644 of file rpmts-py.c.
|
static |
Definition at line 1419 of file rpmts-py.c.
PyTypeObject rpmts_Type |
Definition at line 1650 of file rpmts-py.c.
Referenced by init_rpm().