rpm  5.4.14
Functions | Variables
rpmds-py.c File Reference
#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include "header-py.h"
#include "rpmds-py.h"
#include "debug.h"
Include dependency graph for rpmds-py.c:

Go to the source code of this file.

Functions

static void rpmds_ParseEVR (char *evr, const char **ep, const char **vp, const char **rp)
 Split EVR into epoch, version, and release components. More...
 
static int compare_values (const char *str1, const char *str2)
 
 rpmds_ParseEVR (aEVR,&aE,&aV,&aR)
 
 rpmds_ParseEVR (bEVR,&bE,&bV,&bR)
 
 if (!rc)
 
static PyObject * switch (op)
 
static PyObject * return (PyObject *)
 
static int rpmds_init (rpmdsObject *s, PyObject *args, PyObject *kwds)
 
static void rpmds_free (rpmdsObject *s)
 
static PyObject * rpmds_alloc (PyTypeObject *subtype, int nitems)
 
static PyObject * rpmds_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
 
rpmds dsFromDs (rpmdsObject *s)
 
rpmdsObjectrpmds_Wrap (rpmds ds)
 
rpmdsObjectrpmds_Single (PyObject *s, PyObject *args, PyObject *kwds)
 
rpmdsObjecthdr_dsFromHeader (PyObject *s, PyObject *args, PyObject *kwds)
 
rpmdsObjecthdr_dsOfHeader (PyObject *s)
 
Class: Rpmts
return Py_BuildValue ("i", rc)
 

Variables

static int
 
const char * aE
 
const char * aV
 
const char * aR
 
char * bEVR = xstrdup(rpmdsEVR(b->ds))
 
const char * bE
 
const char * bV
 
const char * bR
 
 aEVR = _free(aEVR)
 
static struct PyMethodDef rpmds_methods []
 
static void
 
static char rpmds_doc []
 
PyTypeObject rpmds_Type
 

Class: Rpmds

int rc = compare_values(aE, bE)
 
static PyObject * result = rpmds_iternext(s)
 
static PyObject *static
PyObject *static PyObject
*static PyObject *static
PyObject *static PyObject
*static PyObject *static
PyObject *static PyObject
*static PyObject *static
PyObject *static PyObject
*char * 
kwlist [] = {"noPromote", NULL}
 
return Py_None
 
static PyObject *rpmdsObjecto
 
return NULL
 
static PyObject *int xx
 
static PyObject *rpmds P = NULL
 
 PRCO = rpmdsFreePRCO(PRCO)
 
 if (result==NULL)
 
static PyObject * rpmds_Debug (rpmdsObject *s, PyObject *args, PyObject *kwds)
 
 if (!PyArg_ParseTupleAndKeywords(args, kwds,"i:SetNoPromote", kwlist,&nopromote)) return NULL
 
return Py_BuildValue ("i", rpmdsSetNoPromote(s->ds, nopromote))
 
 if (!PyArg_ParseTupleAndKeywords(args, kwds,"si:Notify", kwlist,&where,&rc)) return NULL
 
 rpmdsNotify (s->ds, where, rc)
 
 Py_INCREF (Py_None)
 
static PyObject * if (rpmdsMerge(&nds, s->ds) >=0)
 
 if (rpmdsIx(o->ds)==-1)
 
return Py_BuildValue ("i", rpmdsSearch(s->ds, o->ds))
 

Function Documentation

static int compare_values ( const char *  str1,
const char *  str2 
)
static

Definition at line 70 of file rpmds-py.c.

References rpmvercmp.

Referenced by if().

if ( rc)

Definition at line 96 of file rpmds-py.c.

References compare_values().

if ( result  = NULL)

Definition at line 187 of file rpmds-py.c.

References Py_INCREF(), and Py_None.

if ( PyArg_ParseTupleAndKeywordsargs, kwds,"i:SetNoPromote", kwlist,&nopromote)
if ( PyArg_ParseTupleAndKeywordsargs, kwds,"si:Notify", kwlist,&where,&rc)
static PyObject* if ( rpmdsMerge &,->ds >=  0)

Definition at line 340 of file rpmds-py.c.

References rpmdsObject_s::ds, NULL, rpmdsFree(), and void.

if ( rpmdsIx(o->ds = = -1)

Definition at line 365 of file rpmds-py.c.

return Py_BuildValue ( "i"  ,
rc   
)
return Py_BuildValue ( "i"  ,
rpmdsSetNoPromote(s->ds, nopromote)   
)
return Py_BuildValue ( "i"  ,
rpmdsSearch(s->ds, o->ds  
)
Py_INCREF ( Py_None  )
static PyObject* return ( PyObject *  )

Definition at line 138 of file rpmds-py.c.

static PyObject* rpmds_alloc ( PyTypeObject *  subtype,
int  nitems 
)
static

Definition at line 707 of file rpmds-py.c.

References _rpmds_debug, fprintf(), and s.

static PyObject* rpmds_Debug ( rpmdsObject s,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 196 of file rpmds-py.c.

References _rpmds_debug, kwlist, NULL, Py_INCREF(), and Py_None.

static void rpmds_free ( rpmdsObject s)
static

Definition at line 694 of file rpmds-py.c.

References _rpmds_debug, rpmdsObject_s::ds, fprintf(), NULL, PyObject_Del(), rpmdsFree(), and void.

Referenced by rpmds_new().

static int rpmds_init ( rpmdsObject s,
PyObject *  args,
PyObject *  kwds 
)
static
static PyObject* rpmds_new ( PyTypeObject *  subtype,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 720 of file rpmds-py.c.

References _rpmds_debug, rpmdsObject_s::ds, fprintf(), NULL, rpmds_free(), rpmds_init(), and s.

static void rpmds_ParseEVR ( char *  evr,
const char **  ep,
const char **  vp,
const char **  rp 
)
static

Split EVR into epoch, version, and release components.

Parameters
evr[epoch:]version[-release] string
Return values
*eppointer to epoch
*vppointer to version
*rppointer to release

Definition at line 27 of file rpmds-py.c.

References NULL, s, se, and xisdigit().

rpmds_ParseEVR ( aEVR  ,
aE,
aV,
aR 
)
rpmds_ParseEVR ( bEVR  ,
bE,
bV,
bR 
)
rpmdsNotify ( s->  ds,
where  ,
rc   
)
static PyObject* switch ( op  )

Definition at line 114 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsCompare().

Variable Documentation

const char* aE

Definition at line 86 of file rpmds-py.c.

aEVR = _free(aEVR)

Definition at line 102 of file rpmds-py.c.

const char * aR

Definition at line 86 of file rpmds-py.c.

const char * aV

Definition at line 86 of file rpmds-py.c.

const char* bE

Definition at line 88 of file rpmds-py.c.

bEVR = xstrdup(rpmdsEVR(b->ds))

Definition at line 87 of file rpmds-py.c.

const char * bR

Definition at line 88 of file rpmds-py.c.

const char * bV

Definition at line 88 of file rpmds-py.c.

int
static
Initial value:
{
char *aEVR = xstrdup(rpmdsEVR(a->ds))
char * xstrdup(const char *str)
Definition: rpmmalloc.c:321
const char * rpmdsEVR(const rpmds ds)
Return current dependency epoch-version-release.
Definition: rpmds.c:680
aEVR
Definition: rpmds-py.c:102

Definition at line 84 of file rpmds-py.c.

char* kwlist[] = {"noPromote", NULL}

Definition at line 303 of file rpmds-py.c.

return NULL

Definition at line 359 of file rpmds-py.c.

o
Initial value:
{
PyObject * to = NULL
return NULL
Definition: poptALL.c:613

Definition at line 353 of file rpmds-py.c.

static PyObject *rpmds P = NULL

Definition at line 435 of file rpmds-py.c.

Referenced by main(), rpmioParse(), and unsatisfiedDepend().

PRCO = rpmdsFreePRCO(PRCO)

Definition at line 441 of file rpmds-py.c.

Referenced by main(), rpmdsMergePRCO(), rpmdsNewPRCO(), rpmShowRC(), rpmtsPRCO(), and unsatisfiedDepend().

return Py_None

Definition at line 328 of file rpmds-py.c.

PyObject* int rc = compare_values(aE, bE)

Definition at line 89 of file rpmds-py.c.

return result = rpmds_iternext(s)

Definition at line 185 of file rpmds-py.c.

char rpmds_doc[]
static
Initial value:
=
""

Definition at line 741 of file rpmds-py.c.

struct PyMethodDef rpmds_methods[]
static

Definition at line 521 of file rpmds-py.c.

void
static

Definition at line 594 of file rpmds-py.c.

Referenced by if(), and rpmds_free().

xx
Initial value:
{
struct rpmds_s * rpmds
Dependency tag sets from a header, so that a header can be discarded early.
Definition: rpmtypes.h:28
return NULL
Definition: poptALL.c:613
static PyObject *rpmds ds
Definition: rpmte-py.c:283

Definition at line 407 of file rpmds-py.c.