rpm  5.4.14
Data Structures | Macros | Functions | Variables
rpmts-py.c File Reference
#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"
Include dependency graph for rpmts-py.c:

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 voiduh = 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 voidrpmtsCallback (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))
 
memsetcbInfo (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))
 

Macro Definition Documentation

#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.

Function Documentation

memset& cbInfo ( cbInfo  )
Fclose ( fd  )
for ( i  = 0; i < idtx->nidt; i++)

Definition at line 710 of file rpmts-py.c.

References hdr_Wrap(), i, Py_BuildValue(), and Py_XDECREF().

fprintf ( stderr  ,
"*** rpmts_SolveCallback(%p,%p,%p) \"%s\"\n"  ,
ts  ,
ds  ,
data  ,
rpmdsDNEVR(ds  
)
fprintf ( stderr  ,
"*** rpmts_Debug(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_AddInstall(%p,%p,%p,%s) ts %p\n ,
s  ,
h  ,
key  ,
how  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_AddErase(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_Check(%p) ts %p cb %p\n ,
s  ,
s->  ts,
cbInfo.  cb 
)
static PyObject* fprintf ( stderr  ,
"*** rpmts_Order(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_IDTXload(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_IDTXglob(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_Rollback(%p) ts %p\n ,
s  ,
s->  ts 
)
static PyObject* fprintf ( stderr  ,
"*** rpmts_CloseDB(%p) ts %p\n ,
s  ,
s->  ts 
)
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 
)
fprintf ( stderr  ,
"*** rpmts_HdrFromFdno(%p) ts %p rc %d\n ,
s  ,
s->  ts,
rpmrc   
)
fprintf ( stderr  ,
"*** rpmts_HdrCheck(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_SetVSFlags(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_SetColor(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_PgpPrtPkts(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_PgpImportPubkey(%p) ts %p\n ,
s  ,
s->  ts 
)
fprintf ( stderr  ,
"*** rpmts_SetFlags(%p) ts %p transFlags 0x%x\n"  ,
s  ,
s->  ts,
transFlags   
)
fprintf ( stderr  ,
"*** rpmts_SetDFlags(%p) ts %p depFlags 0x%x\n"  ,
s  ,
s->  ts,
depFlags   
)
fprintf ( stderr  ,
"*** rpmts_SetProbFilter(%p) ts %p ignoreSet %x\n ,
s  ,
s->  ts,
ignoreSet   
)
fprintf ( stderr  ,
"*** rpmts_Run(%p) ts %p ignore %x\n ,
s  ,
s->  ts,
s->  ignoreSet 
)
static PyObject* fprintf ( stderr  ,
"*** rpmts_Next(%p) ts %p\n ,
s  ,
s->  ts 
)
Todo:
Add TR_ADDED filter to iterator.
fprintf ( stderr  ,
"*** rpmts_Match(%p) ts %p\n ,
s  ,
s->  ts 
)
if ( cbInfo->  tso = =NULL)
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.

else if ( how &&!  strcmphow,"u")
if ( PyString_Check(o)||PyUnicode_Check(o )
else if ( PyInt_Check(o )
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)
Py_END_ALLOW_THREADS if ( idtx  = NULL || idtx->nidt <= 0)

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.

if ( result  = NULL)

Definition at line 1321 of file rpmts-py.c.

References Py_INCREF(), and Py_None.

if ( parseSpec(s->ts, specfile,"/", recursing, passPhrase, cookie, anyarch, force, verify)!  = 0)

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.

References lkey, and NULL.

if ( rpmtsGetRdb(s->ts)  = NULL)

Definition at line 1407 of file rpmts-py.c.

References NULL, rpmtsGetRdb(), rpmtsOpenDB(), and rpmtsObject_s::ts.

Py_END_ALLOW_THREADS return Py_BuildValue ( "i"  ,
rc   
)
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)
Py_XDECREF ( args  )
Py_XDECREF ( result  )
PyEval_RestoreThread ( cbInfo->  _save)

Referenced by rpmtsCallback().

PyEval_RestoreThread ( cbInfo.  _save)
PyList_Append ( s->  keyList,
key   
)
return ( PyObject *  )
Todo:
Add TR_ADDED filter to iterator.

Definition at line 339 of file rpmts-py.c.

return rpmmi_Wrap ( rpmtsInitIterator(s->ts, tag, key, len )
static rpmpsObject* return rpmps_Wrap ( rpmtsProblems(s->ts)  )
static void rpmts_Die ( PyObject *  cb)
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 PyObject* rpmts_getattro ( PyObject *  o,
PyObject *  n 
)
static

Definition at line 1539 of file rpmts-py.c.

static PyObject* rpmts_GetVSFlags ( rpmtsObject s)
static

Definition at line 1032 of file rpmts-py.c.

References Py_BuildValue(), rpmtsVSFlags(), and rpmtsObject_s::ts.

rpmtsAddInstallElement ( s->  ts,
hdrGetHeader(h ,
key  ,
isUpgrade  ,
NULL   
)
static void* rpmtsCallback ( const void hd,
const rpmCallbackType  what,
const rpmuint64_t  amount,
const rpmuint64_t  total,
fnpyKey  pkgKey,
rpmCallbackData  data 
)
static
static PyObject* rpmtsClean ( s->  ts)
static PyObject* void rpmtsSetDBMode ( s->  ts,
O_RDONLY   
)
void rpmtsSetDBMode ( s->  ts,
1 
)
void rpmtsSetNotifyCallback ( s->  ts,
NULL  ,
NULL   
)
return spec_Wrap ( spec  )
switch ( rpmrc  )
while ( rpmpsNextIterator(psi) >=  0)

Variable Documentation

int _rpmts_debug

Definition at line 93 of file rpmts.c.

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
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
Initial value:
{
PyObject * o
char * o
Definition: macro.c:745
Todo:
Permit finer control (i.e. not just –allmatches) of deleted elments.

Definition at line 456 of file rpmts-py.c.

dig = pgpDigNew(rpmtsVSFlags(s->ts), 0)

Definition at line 211 of file rpmts-py.c.

else
Initial value:
{
res = PyInt_AsLong(result)
pid_t result
Definition: rpmsq.c:737
rpmRC res
Definition: signature.c:584

Definition at line 221 of file rpmts-py.c.

fd = fdDup(fdno)

Definition at line 922 of file rpmts-py.c.

int fdno
int force = 1

Definition at line 1344 of file rpmts-py.c.

Referenced by parseSpec(), and rpmts_parse_spec().

Py_BEGIN_ALLOW_THREADS globstr
Initial value:
{
PyObject * result = NULL
pid_t result
Definition: rpmsq.c:737
return NULL
Definition: poptALL.c:613

Definition at line 732 of file rpmts-py.c.

Referenced by rpmRollback().

PyObject* Header h
Initial value:
{
PyObject * result = NULL
pid_t result
Definition: rpmsq.c:737
return NULL
Definition: poptALL.c:613

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().

IDTX idtx = IDTXload(s->ts, tag, rbtid)

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.

int
static
Initial value:
{
PyObject * data
Definition: rpmts-py.c:171
struct rpmtsCallbackType_s cbInfo
Definition: rpmts-py.c:522

Definition at line 198 of file rpmts-py.c.

int isUpgrade = 0

Definition at line 415 of file rpmts-py.c.

char* key
Initial value:
{
Header h
Definition: spec.c:739

Definition at line 411 of file rpmts-py.c.

rpmmiObject* PyObject* Key = NULL

Definition at line 1369 of file rpmts-py.c.

char* kwlist[] = {"header", "key", "how", NULL}

Definition at line 416 of file rpmts-py.c.

int len = 0

Definition at line 1373 of file rpmts-py.c.

return list
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
return NULL

Definition at line 466 of file rpmts-py.c.

oignoreSet
Initial value:
{
enum rpmprobFilterFlags_e rpmprobFilterFlags
s ignoreSet
Definition: rpmts-py.c:1217

Definition at line 1204 of file rpmts-py.c.

PyObject* rpmProblem p
Initial value:
{
struct rpmps_s * rpmps
Transaction problems found while processing a transaction set/.
Definition: rpmps.h:25
ps
Definition: rpmts-py.c:548

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
unsigned int pktlen = PyString_Size(blob)
ia probFilter = RPMPROB_FILTER_OLDPACKAGE

Definition at line 806 of file rpmts-py.c.

rpmps ps = rpmtsProblems(s->ts)

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.

return result = PyEval_CallObject(cbInfo->cb, args)

Definition at line 200 of file rpmts-py.c.

rpmRC rpmrc = rpmReadPackageFile(s->ts, fd, "rpmts_HdrFromFdno", &h)
char rpmts_doc[]
static
Initial value:
=
""

Definition at line 1653 of file rpmts-py.c.

spec
Initial value:
{
const char * specfile

Definition at line 1336 of file rpmts-py.c.

Definition at line 684 of file rpmts-py.c.

ia transFlags
Initial value:
{
QVA_t ia = memset(alloca(sizeof(*ia)), 0, sizeof(*ia))
Command line option information.
Definition: rpmcli.h:630
char * alloca()
memset(_r, 0, sizeof(*_r))

Definition at line 785 of file rpmts-py.c.

Referenced by rpmcliQuery(), rpmcliVerify(), rpmRollback(), rpmtsFlags(), and rpmtsSetFlags().

cbInfo tso = s

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)
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.