rpm
5.4.14
|
#include "system.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 PyObject * | rpmts_getattro (PyObject *o, PyObject *n) |
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) |
Variables | |
int | _rpmts_debug |
static struct PyMethodDef | rpmts_methods [] |
static char | rpmts_doc [] |
PyTypeObject | rpmts_Type |
Class: Rpmts | |
static | int |
PyObject * | args = Py_BuildValue("(OO)", cbInfo->tso, cbInfo->dso) |
PyObject * | result = PyEval_CallObject(cbInfo->cb, args) |
int | res = 1 |
cbInfo | dso = rpmds_Wrap(ds) |
else | |
cbInfo | _save = PyEval_SaveThread() |
return | Py_None |
static PyObject *PyObject * | key |
char * | how = "u" |
int | isUpgrade = 0 |
char * | kwlist [] = {"header", "key", "how", NULL} |
static PyObject *int | count |
rpmmi | mi |
return | NULL |
static PyObject *rpmProblem | p |
PyObject * | list |
PyObject * | cf |
struct rpmtsCallbackType_s | cbInfo |
int | i |
int | xx = rpmtsCheck(s->ts) |
cbInfo | tso = s |
ps = rpmtsProblems(s->ts) | |
Py_BEGIN_ALLOW_THREADS | rc = rpmtsOrder(s->ts) |
static PyObject *rpmTag | tag = RPMTAG_INSTALLTID |
uint32_t | rbtid = 0 |
IDTX | idtx = IDTXload(s->ts, tag, rbtid) |
PyObject * | ho |
IDT | idt |
static PyObject *const char * | globstr |
static PyObject *rpmtransFlags | transFlags |
const char ** | av = NULL |
Py_BEGIN_ALLOW_THREADS ia | qva_flags = (VERIFY_DIGEST|VERIFY_SIGNATURE|VERIFY_HDRCHK) |
ia | installInterfaceFlags = (INSTALL_UPGRADE|INSTALL_FRESHEN|INSTALL_INSTALL) |
ia | relocations = NULL |
ia | probFilter = RPMPROB_FILTER_OLDPACKAGE |
static PyObject *Header | h |
FD_t | fd = fdDup(fdno) |
int | fdno |
rpmRC | rpmrc = rpmReadPackageFile(s->ts, fd, "rpmts_HdrFromFdno", &h) |
const char * | msg = NULL |
const void * | uh = PyString_AsString(blob) |
int | uc = PyString_Size(blob) |
pgpDig | dig = pgpDigNew(rpmtsVSFlags(s->ts), 0) |
static PyObject *unsigned char * | pkt |
unsigned int | pktlen = PyString_Size(blob) |
static PyObject *rpmprobFilterFlags | oignoreSet |
s | ignoreSet = ignoreSet |
rpmpsi | psi = rpmpsInitIterator(ps) |
static specObject *Spec | spec |
int | recursing = 0 |
char * | passPhrase = "" |
char * | cookie = NULL |
int | anyarch = 1 |
int | verify = 1 |
int | force = 1 |
static rpmmiObject *PyObject * | Key = NULL |
int | lkey = 0 |
int | len = 0 |
static void | rpmts_Die (PyObject *cb) |
fprintf (stderr,"*** rpmts_SolveCallback(%p,%p,%p) \"%s\"\n", ts, ds, data, rpmdsDNEVR(ds)) | |
if (cbInfo->tso==NULL) return res | |
PyEval_RestoreThread (cbInfo->_save) | |
Py_XDECREF (cbInfo->dso) | |
Py_XDECREF (args) | |
if (!result) | |
Py_XDECREF (result) | |
static void * | rpmtsCallback (const void *hd, const rpmCallbackType what, const rpmuint64_t amount, const rpmuint64_t total, fnpyKey pkgKey, rpmCallbackData data) |
static PyObject * | Py_INCREF (s) |
return (PyObject *) | |
static PyObject * | if (!PyArg_ParseTupleAndKeywords(args, kwds,"i:Debug", kwlist,&_rpmts_debug)) return NULL |
fprintf (stderr,"*** rpmts_Debug(%p) ts %p\n", s, s->ts) | |
Py_INCREF (Py_None) | |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"O!O|s:AddInstall", kwlist,&hdr_Type,&h,&key,&how)) return NULL | |
if (hObj->ob_type!=&hdr_Type) | |
fprintf (stderr,"*** rpmts_AddInstall(%p,%p,%p,%s) ts %p\n", s, h, key, how, s->ts) | |
if (how &&strcmp(how,"a")&&strcmp(how,"u")&&strcmp(how,"i")) | |
else | if (how &&!strcmp(how,"u")) isUpgrade |
rpmtsAddInstallElement (s->ts, hdrGetHeader(h), key, isUpgrade, NULL) | |
PyList_Append (s->keyList, key) | |
fprintf (stderr,"*** rpmts_AddErase(%p) ts %p\n", s, s->ts) | |
if (PyString_Check(o)||PyUnicode_Check(o)) | |
else | if (PyInt_Check(o)) |
memset & | cbInfo (cbInfo) |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"|O:Check", kwlist,&cbInfo.cb)) return NULL | |
if (cbInfo.cb!=NULL) | |
fprintf (stderr,"*** rpmts_Check(%p) ts %p cb %p\n", s, s->ts, cbInfo.cb) | |
PyEval_RestoreThread (cbInfo._save) | |
if (ps!=NULL) | |
static PyObject * | fprintf (stderr,"*** rpmts_Order(%p) ts %p\n", s, s->ts) |
Py_END_ALLOW_THREADS return | Py_BuildValue ("i", rc) |
static PyObject * | rpmtsClean (s->ts) |
fprintf (stderr,"*** rpmts_IDTXload(%p) ts %p\n", s, s->ts) | |
Py_END_ALLOW_THREADS | if (idtx==NULL||idtx->nidt<=0) |
for (i=0;i< idtx->nidt;i++) | |
fprintf (stderr,"*** rpmts_IDTXglob(%p) ts %p\n", s, s->ts) | |
fprintf (stderr,"*** rpmts_Rollback(%p) ts %p\n", s, s->ts) | |
static PyObject *void | rpmtsSetDBMode (s->ts, O_RDONLY) |
return | Py_BuildValue ("i", rpmtsOpenDB(s->ts, rpmtsDBMode(s->ts))) |
static PyObject * | fprintf (stderr,"*** rpmts_CloseDB(%p) ts %p\n", s, s->ts) |
void | rpmtsSetDBMode (s->ts,-1) |
static PyObject * | fprintf (stderr,"*** rpmts_InitDB(%p) ts %p\n", s, s->ts) |
static PyObject * | fprintf (stderr,"*** rpmts_RebuildDB(%p) ts %p\n", s, s->ts) |
static PyObject * | fprintf (stderr,"*** rpmts_VerifyDB(%p) ts %p\n", s, s->ts) |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"i:HdrFromFdno", kwlist,&fdno)) return NULL | |
Fclose (fd) | |
fprintf (stderr,"*** rpmts_HdrFromFdno(%p) ts %p rc %d\n", s, s->ts, rpmrc) | |
switch (rpmrc) | |
fprintf (stderr,"*** rpmts_HdrCheck(%p) ts %p\n", s, s->ts) | |
if (blob==Py_None) | |
if (!(PyString_Check(blob)||PyUnicode_Check(blob))) | |
static PyObject * | rpmts_GetVSFlags (rpmtsObject *s) |
fprintf (stderr,"*** rpmts_SetVSFlags(%p) ts %p\n", s, s->ts) | |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"i:SetVSFlags", kwlist,&vsflags)) return NULL | |
return | Py_BuildValue ("i", rpmtsSetVSFlags(s->ts, vsflags)) |
fprintf (stderr,"*** rpmts_SetColor(%p) ts %p\n", s, s->ts) | |
return | Py_BuildValue ("i", rpmtsSetColor(s->ts, tscolor)) |
fprintf (stderr,"*** rpmts_PgpPrtPkts(%p) ts %p\n", s, s->ts) | |
fprintf (stderr,"*** rpmts_PgpImportPubkey(%p) ts %p\n", s, s->ts) | |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"O:PgpImportPubkey", kwlist,&blob)) return NULL | |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"i:SetFlags", kwlist,&transFlags)) return NULL | |
fprintf (stderr,"*** rpmts_SetFlags(%p) ts %p transFlags 0x%x\n", s, s->ts, transFlags) | |
return | Py_BuildValue ("i", rpmtsSetFlags(s->ts, transFlags)) |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"i:SetDFlags", kwlist,&depFlags)) return NULL | |
fprintf (stderr,"*** rpmts_SetDFlags(%p) ts %p depFlags 0x%x\n", s, s->ts, depFlags) | |
return | Py_BuildValue ("i", rpmtsSetDFlags(s->ts, depFlags)) |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"i:ProbFilter", kwlist,&ignoreSet)) return NULL | |
fprintf (stderr,"*** rpmts_SetProbFilter(%p) ts %p ignoreSet %x\n", s, s->ts, ignoreSet) | |
return | Py_BuildValue ("i", oignoreSet) |
static rpmpsObject *return | rpmps_Wrap (rpmtsProblems(s->ts)) |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"OO:Run", kwlist,&cbInfo.cb,&cbInfo.data)) return NULL | |
fprintf (stderr,"*** rpmts_Run(%p) ts %p ignore %x\n", s, s->ts, s->ignoreSet) | |
void | rpmtsSetNotifyCallback (s->ts, NULL, NULL) |
if (rc< 0) | |
while (rpmpsNextIterator(psi) >=0) | |
static PyObject * | fprintf (stderr,"*** rpmts_Next(%p) ts %p\n", s, s->ts) |
if (result==NULL) | |
if (parseSpec(s->ts, specfile,"/", recursing, passPhrase, cookie, anyarch, force, verify)!=0) | |
return | spec_Wrap (spec) |
fprintf (stderr,"*** rpmts_Match(%p) ts %p\n", s, s->ts) | |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"|OO:Match", kwlist,&TagN,&Key)) return NULL | |
if (TagN &&(tag=tagNumFromPyObject(TagN))==-1) | |
if (Key) | |
if (rpmtsGetRdb(s->ts)==NULL) | |
return | rpmmi_Wrap (rpmtsInitIterator(s->ts, tag, key, len)) |
#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.
memset& cbInfo | ( | cbInfo | ) |
Fclose | ( | fd | ) |
Definition at line 710 of file rpmts-py.c.
References hdr_Wrap(), i, Py_BuildValue(), and Py_XDECREF().
fprintf | ( | stderr | , |
"*** rpmts_SetFlags(%p) ts %p transFlags 0x%x\n" | , | ||
s | , | ||
s-> | ts, | ||
transFlags | |||
) |
if | ( | ! | result | ) |
Definition at line 218 of file rpmts-py.c.
References rpmtsCallbackType_s::cb, and rpmts_Die().
static PyObject* if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"i:Debug", kwlist,&_rpmts_debug | ) |
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"O!O|s:AddInstall", kwlist,&hdr_Type,&h,&key,&how | ) |
if | ( | hObj->ob_type! | = &hdr_Type | ) |
Definition at line 423 of file rpmts-py.c.
References NULL.
if | ( | how && | strcmphow,"a")&&strcmp(how,"u")&&strcmp(how,"i" | ) |
Definition at line 432 of file rpmts-py.c.
References NULL.
Definition at line 468 of file rpmts-py.c.
References h, hdrNum, name, NULL, pyrpmError, rpmmiCount(), rpmmiFree(), rpmmiInstance(), rpmmiNext(), RPMTAG_NVRA, rpmtsAddEraseElement(), rpmtsInitIterator(), and rpmtsObject_s::ts.
Definition at line 487 of file rpmts-py.c.
References h, hdrNum, NULL, pyrpmError, RPMDBI_PACKAGES, rpmmiFree(), rpmmiInstance(), rpmmiNext(), rpmtsAddEraseElement(), rpmtsInitIterator(), and rpmtsObject_s::ts.
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"|O:Check", kwlist,&cbInfo.cb | ) |
if | ( | cbInfo.cb! | = NULL | ) |
Definition at line 532 of file rpmts-py.c.
References rpmtsCallbackType_s::cb, NULL, rpmtsSetSolveCallback(), and rpmtsObject_s::ts.
if | ( | ps! | = NULL | ) |
Definition at line 555 of file rpmts-py.c.
References _free(), b, key, list, NULL, psi, Py_BuildValue(), Py_None, Py_XDECREF(), PyList_Append(), RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, RPMPROB_BADRELOCATE, rpmProblemGetAltNEVR(), rpmProblemGetPkgNEVR(), rpmProblemGetType(), rpmProblemKey(), rpmpsFree(), rpmpsFreeIterator(), rpmpsInitIterator(), rpmpsNextIterator(), rpmpsProblem(), RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, and xstrdup().
Definition at line 700 of file rpmts-py.c.
References Py_INCREF(), and Py_None.
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"i:HdrFromFdno", kwlist,&fdno | ) |
if | ( | blob | = = Py_None | ) |
Definition at line 989 of file rpmts-py.c.
References Py_INCREF(), and Py_None.
if | ( | ! | PyString_Check(blob)||PyUnicode_Check(blob) | ) |
Definition at line 993 of file rpmts-py.c.
References pyrpmError, and result.
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"i:SetVSFlags", kwlist,&vsflags | ) |
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"O:PgpImportPubkey", kwlist,&blob | ) |
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"i:SetFlags", kwlist,&transFlags | ) |
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"i:SetDFlags", kwlist,&depFlags | ) |
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"i:ProbFilter", kwlist,&ignoreSet | ) |
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"OO:Run", kwlist,&cbInfo.cb,&cbInfo.data | ) |
if | ( | ) |
Definition at line 1277 of file rpmts-py.c.
References list.
Definition at line 1321 of file rpmts-py.c.
References Py_INCREF(), and Py_None.
Definition at line 1350 of file rpmts-py.c.
References NULL, and pyrpmError.
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"|OO:Match", kwlist,&TagN,&Key | ) |
if | ( | TagN && | tag=tagNumFromPyObject(TagN) = = -1 | ) |
Definition at line 1384 of file rpmts-py.c.
References NULL.
if | ( | Key | ) |
Definition at line 1389 of file rpmts-py.c.
if | ( | rpmtsGetRdb(s->ts) | = = NULL | ) |
Definition at line 1407 of file rpmts-py.c.
References NULL, rpmtsGetRdb(), rpmtsOpenDB(), and rpmtsObject_s::ts.
return Py_BuildValue | ( | "i" | , |
rpmtsOpenDB(s->ts, rpmtsDBMode(s->ts)) | |||
) |
return Py_BuildValue | ( | "i" | , |
rpmtsSetVSFlags(s->ts, vsflags) | |||
) |
return Py_BuildValue | ( | "i" | , |
rpmtsSetColor(s->ts, tscolor) | |||
) |
return Py_BuildValue | ( | "i" | , |
rpmtsSetFlags(s->ts, transFlags) | |||
) |
return Py_BuildValue | ( | "i" | , |
rpmtsSetDFlags(s->ts, depFlags) | |||
) |
return Py_BuildValue | ( | "i" | , |
oignoreSet | |||
) |
static PyObject* Py_INCREF | ( | s | ) |
Py_INCREF | ( | Py_None | ) |
Py_XDECREF | ( | cbInfo-> | dso | ) |
Referenced by addRpmTags(), for(), hdr_subscript(), hdrKeyList(), if(), init_rpm(), rpmfts_dealloc(), rpmfts_new(), rpmpythonRun(), rpmReadHeaders(), rpmts_dealloc(), rpmts_free(), rpmtsCallback(), and while().
Py_XDECREF | ( | args | ) |
Py_XDECREF | ( | result | ) |
PyEval_RestoreThread | ( | cbInfo-> | _save | ) |
Referenced by rpmtsCallback().
PyEval_RestoreThread | ( | cbInfo. | _save | ) |
Referenced by hdr_subscript(), hdrKeyList(), if(), rpmReadHeaders(), signalsCaught(), and while().
return | ( | PyObject * | ) |
Definition at line 339 of file rpmts-py.c.
static rpmpsObject* return rpmps_Wrap | ( | rpmtsProblems(s->ts) | ) |
|
static |
Definition at line 180 of file rpmts-py.c.
References _, exit, EXIT_FAILURE, NULL, rpmdbCheckTerminate(), rpmlog(), and RPMLOG_ERR.
Referenced by if(), and rpmtsCallback().
|
static |
Definition at line 1539 of file rpmts-py.c.
|
static |
Definition at line 1032 of file rpmts-py.c.
References Py_BuildValue(), rpmtsVSFlags(), and rpmtsObject_s::ts.
|
static |
Definition at line 236 of file rpmts-py.c.
References _free(), _rpmts_debug, rpmtsCallbackType_s::_save, alloca(), args, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, Fclose(), fd, fdDup(), fdno, fdSetOpen(), Fileno(), fprintf(), h, headerGet(), memset(), NULL, _HE_s::p, rpmDataType_u::ptr, Py_BuildValue(), Py_INCREF(), Py_None, Py_XDECREF(), PyEval_RestoreThread(), result, RPMCALLBACK_INST_CLOSE_FILE, RPMCALLBACK_INST_OPEN_FILE, RPMTAG_NAME, rpmts_Die(), rpmDataType_u::str, _HE_s::tag, and void.
static PyObject* rpmtsClean | ( | s-> | ts | ) |
switch | ( | rpmrc | ) |
Definition at line 939 of file rpmts-py.c.
References hdr_Wrap(), headerFree, NULL, Py_BuildValue(), pyrpmError, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, and void.
while | ( | rpmpsNextIterator(psi) >= | 0 | ) |
Definition at line 1290 of file rpmts-py.c.
References Py_BuildValue(), Py_XDECREF(), PyList_Append(), rpmProblemGetDiskNeed(), rpmProblemGetStr(), rpmProblemGetType(), rpmProblemString(), and rpmpsProblem().
cbInfo _save = PyEval_SaveThread() |
Definition at line 227 of file rpmts-py.c.
int anyarch = 1 |
Definition at line 1342 of file rpmts-py.c.
Referenced by _specQuery(), parseSpec(), and rpmts_parse_spec().
args = Py_BuildValue("(OO)", cbInfo->tso, cbInfo->dso) |
Definition at line 200 of file rpmts-py.c.
Referenced by doPatch(), rpmhookArgsNew(), rpmhookArgsParse(), rpmhookCall(), and rpmtsCallback().
const char** av = NULL |
Definition at line 788 of file rpmts-py.c.
Referenced by _RequestPass(), argvFgets(), argvFree(), argvPrint(), copyData(), dataLength(), dbiMireKeys(), findPreambleTag(), for(), formatValue(), IDTXglob(), isPart(), main(), makeGPGSignature(), missingokTag(), open_dso(), packageSources(), rpmCheckPassPhrase(), rpmcliInstallElementPath(), rpmdbURIPath(), rpmdsCpuinfo(), rpmdsDupArgv(), rpmdsNew(), rpmdsSysinfo(), rpmfcExpandRegexps(), rpmfcGenerateDepends(), rpmfcHelper(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmfiNew(), rpmGetMacroEntries(), rpmgiGlobArgv(), rpmgiInitFilter(), rpmGlob(), rpmInitMacros(), rpmioInit(), rpmmc_list(), rpmnsArch(), rpmnsProbe(), rpmpythonNew(), rpmReadPackageManifest(), rpmsqlArgv(), rpmsqlNew(), rpmtsFini(), rpmtsOpenSDB(), runScript(), and while().
struct rpmtsCallbackType_s cbInfo |
Definition at line 522 of file rpmts-py.c.
PyObject * cf |
Definition at line 521 of file rpmts-py.c.
Referenced by rpmpythonRun(), and rpmpythonRunFile().
char* cookie = NULL |
Definition at line 1341 of file rpmts-py.c.
Referenced by _specQuery(), rpmts_parse_spec(), and writeRPM().
PyObject* int count |
Definition at line 456 of file rpmts-py.c.
dig = pgpDigNew(rpmtsVSFlags(s->ts), 0) |
Definition at line 979 of file rpmts-py.c.
Referenced by digGetPool(), getSignid(), makeGPGSignature(), pgpDigFini(), pgpDigNew(), pgpImplMpiItem(), pgpImplSetDSA(), pgpImplSetECDSA(), pgpImplSetELG(), pgpImplSetRSA(), pgpsigFormat(), readFile(), rpmcliImportPubkey(), rpmnsProbeSignature(), rpmReadHeader(), rpmReadPackageFile(), rpmtsFindPubkey(), rpmVerifySignatures(), and writeRPM().
cbInfo dso = rpmds_Wrap(ds) |
Definition at line 211 of file rpmts-py.c.
else |
Definition at line 221 of file rpmts-py.c.
Definition at line 922 of file rpmts-py.c.
int fdno |
Definition at line 923 of file rpmts-py.c.
Referenced by __fdClose(), __fdOpen(), __fdWrite(), checkfd(), db3open(), dodigest(), Fadvise(), Fallocate(), fdFgets(), fdReadable(), fdSetFdno(), fdWritable(), Fopen(), headerMap(), Open(), open_dso(), printSize(), rdSignature(), rpmCheckPassPhrase(), rpmdsELF(), rpmReadHeader(), rpmts_setattro(), rpmtsCallback(), runScript(), and writeFile().
int force = 1 |
Definition at line 1344 of file rpmts-py.c.
Referenced by parseSpec(), and rpmts_parse_spec().
Py_BEGIN_ALLOW_THREADS globstr |
PyObject* Header h |
Definition at line 919 of file rpmts-py.c.
PyObject* ho |
Definition at line 705 of file rpmts-py.c.
char* how = "u" |
Definition at line 414 of file rpmts-py.c.
int i |
Definition at line 523 of file rpmts-py.c.
IDT idt |
Definition at line 706 of file rpmts-py.c.
Referenced by IDTXfree(), IDTXglob(), and IDTXload().
Definition at line 687 of file rpmts-py.c.
Referenced by IDTXglob(), IDTXgrow(), IDTXload(), IDTXnew(), and IDTXsort().
s ignoreSet = ignoreSet |
Definition at line 1217 of file rpmts-py.c.
Referenced by rpmtsRollback(), and rpmtsSetup().
ia installInterfaceFlags = (INSTALL_UPGRADE|INSTALL_FRESHEN|INSTALL_INSTALL) |
Definition at line 803 of file rpmts-py.c.
|
static |
Definition at line 198 of file rpmts-py.c.
int isUpgrade = 0 |
Definition at line 415 of file rpmts-py.c.
char* key |
Definition at line 411 of file rpmts-py.c.
rpmmiObject* PyObject* Key = NULL |
Definition at line 1369 of file rpmts-py.c.
Definition at line 416 of file rpmts-py.c.
int len = 0 |
Definition at line 1373 of file rpmts-py.c.
return list |
Definition at line 521 of file rpmts-py.c.
Referenced by addTriggerIndex(), fsnamesTag(), hdrKeyList(), if(), pkgUnpackagedSubdirs(), rpmHeaderFromFD(), rpmHeaderFromFile(), rpmHeaderToFD(), rpmHeaderToFile(), and rpmReadHeaders().
int lkey = 0 |
Definition at line 1372 of file rpmts-py.c.
Referenced by if().
rpmmi mi |
Definition at line 459 of file rpmts-py.c.
msg = NULL |
Definition at line 976 of file rpmts-py.c.
Referenced by cpio_doio(), iosmStrerror(), makeHDRSignature(), mireRegcomp(), mireRegexec(), readFile(), rpmdbClose(), rpmdcPrintCoreutils(), rpmdcPrintZeroInstall(), rpmfcGenerateDepends(), rpmgiNext(), rpmmgBuffer(), rpmmgFile(), rpmpsmNew(), rpmpsmStage(), rpmpsPrint(), rpmReadHeaders(), rpmReadPackageFile(), rpmrepoOpenMDFile(), rpmReSign(), rpmSingleHeaderFromFD(), rpmtsAddInstallElement(), rpmtsProblems(), rpmVerifySignatures(), rpmWriteHeaders(), showVerifyPackage(), and vrpmlog().
return NULL |
Definition at line 466 of file rpmts-py.c.
oignoreSet |
Definition at line 1204 of file rpmts-py.c.
PyObject* rpmProblem p |
Definition at line 518 of file rpmts-py.c.
char* passPhrase = "" |
Definition at line 1340 of file rpmts-py.c.
Referenced by _specQuery(), and main().
static PyObject *unsigned char * pkt |
Definition at line 1089 of file rpmts-py.c.
Referenced by makeHDRSignature(), pgpExtractPubkeyFingerprint(), pgpsigFormat(), processMetadataFile(), rpmAddSignature(), rpmbcExportPubkey(), rpmbcExportSignature(), and rpmcliImportPubkeys().
Definition at line 1092 of file rpmts-py.c.
Referenced by makeHDRSignature(), pgpExtractPubkeyFingerprint(), pgpGrabPkts(), pgpsigFormat(), processMetadataFile(), rpmAddSignature(), rpmbcExportPubkey(), rpmbcExportSignature(), rpmcliImportPubkey(), and rpmcliImportPubkeys().
ia probFilter = RPMPROB_FILTER_OLDPACKAGE |
Definition at line 806 of file rpmts-py.c.
rpmps ps = rpmtsProblems(s->ts) |
Definition at line 548 of file rpmts-py.c.
Referenced by _rpmtsCheck(), _rpmtsRun(), checkPackageDeps(), cmpArgvStr(), ensureOlder(), handleInstInstalledFile(), handleOverlappedFiles(), relocateFileList(), rpmcliInstallProblems(), rpmps_length_get(), rpmps_print(), rpmps_push(), rpmps_Wrap(), rpmpsCreate(), rpmpsFini(), rpmpsGetPool(), rpmtsAddInstallElement(), rpmtsCheckDSIProblems(), rpmtsProblems(), rpmtsSanityCheck(), and verifyDependencies().
psi = rpmpsInitIterator(ps) |
Definition at line 1246 of file rpmts-py.c.
return Py_None |
Definition at line 401 of file rpmts-py.c.
Py_BEGIN_ALLOW_THREADS ia qva_flags = (VERIFY_DIGEST|VERIFY_SIGNATURE|VERIFY_HDRCHK) |
Definition at line 800 of file rpmts-py.c.
ia rbtid = 0 |
Definition at line 686 of file rpmts-py.c.
Referenced by rpmRollback().
rc = rpmtsOrder(s->ts) |
Definition at line 652 of file rpmts-py.c.
int recursing = 0 |
Definition at line 1339 of file rpmts-py.c.
Referenced by _specQuery(), parseSpec(), and rpmts_parse_spec().
ia relocations = NULL |
Definition at line 805 of file rpmts-py.c.
Referenced by relocateFileList(), and rpmcliInstall().
return res = 1 |
Definition at line 201 of file rpmts-py.c.
Definition at line 200 of file rpmts-py.c.
rpmRC rpmrc = rpmReadPackageFile(s->ts, fd, "rpmts_HdrFromFdno", &h) |
Definition at line 924 of file rpmts-py.c.
Referenced by IDTXglob(), main(), prepFetch(), rpmcliArgIter(), rpmcliImportPubkeys(), rpmcliInstall(), rpmcliSign(), rpmgiGlobArgv(), rpmgiInitFilter(), rpmgiLoadManifest(), rpmgiLoadNextKey(), rpmgiLoadReadHeader(), rpmgiNext(), rpmgiReadHeader(), rpmgiShowMatches(), rpmgiWalkPathFilter(), rpmgiWalkReadHeader(), rpmReadPackageManifest(), rpmrepoReadHeader(), rpmReSign(), and rpmtsSolve().
|
static |
Definition at line 1653 of file rpmts-py.c.
spec |
Definition at line 1336 of file rpmts-py.c.
int tag = RPMTAG_INSTALLTID |
Definition at line 684 of file rpmts-py.c.
ia transFlags |
Definition at line 785 of file rpmts-py.c.
Referenced by rpmcliQuery(), rpmcliVerify(), rpmRollback(), rpmtsFlags(), and rpmtsSetFlags().
Definition at line 543 of file rpmts-py.c.
uc = PyString_Size(blob) |
Definition at line 978 of file rpmts-py.c.
Referenced by rpmReadHeader().
uh = PyString_AsString(blob) |
Definition at line 977 of file rpmts-py.c.
Referenced by headerLoad(), headerReload(), rpmmiGet(), rpmmiNext(), rpmpsmStage(), rpmReadPackageFile(), rpmWriteHeader(), showVerifyPackage(), and writeRPM().
int verify = 1 |
Definition at line 1343 of file rpmts-py.c.
Referenced by _specQuery(), and rpmts_parse_spec().
xx = rpmtsCheck(s->ts) |
Definition at line 524 of file rpmts-py.c.