rpm
5.4.14
|
#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"
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) |
rpmdsObject * | rpmds_Wrap (rpmds ds) |
rpmdsObject * | rpmds_Single (PyObject *s, PyObject *args, PyObject *kwds) |
rpmdsObject * | hdr_dsFromHeader (PyObject *s, PyObject *args, PyObject *kwds) |
rpmdsObject * | hdr_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 *rpmdsObject * | o |
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)) |
|
static |
if | ( | ! | rc | ) |
Definition at line 96 of file rpmds-py.c.
References compare_values().
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.
Definition at line 365 of file rpmds-py.c.
return Py_BuildValue | ( | "i" | , |
rpmdsSetNoPromote(s->ds, nopromote) | |||
) |
Py_INCREF | ( | Py_None | ) |
static PyObject* return | ( | PyObject * | ) |
Definition at line 138 of file rpmds-py.c.
|
static |
Definition at line 707 of file rpmds-py.c.
References _rpmds_debug, fprintf(), and s.
|
static |
Definition at line 196 of file rpmds-py.c.
References _rpmds_debug, kwlist, NULL, Py_INCREF(), and Py_None.
|
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 |
Definition at line 662 of file rpmds-py.c.
References _rpmds_debug, rpmdsObject_s::active, rpmdsObject_s::ds, fprintf(), hdr_Type, hdrGetHeader(), ho, NULL, rpmdsNew(), RPMTAG_REQUIRENAME, and tagNumFromPyObject().
Referenced by rpmds_new().
|
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 |
Split EVR into epoch, version, and release components.
evr | [epoch:]version[-release] string |
*ep | pointer to epoch |
*vp | pointer to version |
*rp | pointer 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 | ||
) |
static PyObject* switch | ( | op | ) |
Definition at line 114 of file rpmds-py.c.
References rpmdsObject_s::ds, and rpmdsCompare().
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.
const char * bR |
Definition at line 88 of file rpmds-py.c.
const char * bV |
Definition at line 88 of file rpmds-py.c.
|
static |
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 |
Definition at line 353 of file rpmds-py.c.
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.
Definition at line 185 of file rpmds-py.c.
|
static |
Definition at line 741 of file rpmds-py.c.
|
static |
Definition at line 521 of file rpmds-py.c.
|
static |
Definition at line 594 of file rpmds-py.c.
Referenced by if(), and rpmds_free().
xx |
Definition at line 407 of file rpmds-py.c.