rpm
5.4.14
|
#include "system.h"
#include <rpmio.h>
#include <rpmcb.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include "rpmdb-py.h"
#include "rpmmi-py.h"
#include "header-py.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
if (!PyInt_Check(key)) | |
if (!(h=rpmmiNext(mi))) | |
void | headerFree (h) |
static void | rpmdb_dealloc (rpmdbObject *s) |
static PyObject * | rpmdb_getattro (PyObject *o, PyObject *n) |
static int | rpmdb_setattro (PyObject *o, PyObject *n, PyObject *v) |
Variables | |
static struct PyMethodDef | rpmdb_methods [] |
static | int |
int | count = 0 |
mi = rpmmiInit(s->db, RPMDBI_PACKAGES, NULL, 0) | |
Header | h = NULL |
offset = (int) PyInt_AsLong(key) | |
static PyMappingMethods | rpmdb_as_mapping |
static char | rpmdb_doc [] |
PyTypeObject | rpmdb_Type |
Class: Rpmts | |
static hdrObject *hdrObject * | ho |
Class: Rpmdb | |
static rpmmiObject *char * | key = NULL |
int | len = 0 |
int | tag = RPMDBI_PACKAGES |
char * | kwlist [] = {"tagNumber", "key", "len", NULL} |
if (!PyArg_ParseTupleAndKeywords(args, kwds,"|Ozi", kwlist,&TagN,&key,&len)) return NULL | |
if (TagN &&(tag=tagNumFromPyObject(TagN))==-1) | |
return | rpmmi_Wrap (rpmmiInit(s->db, tag, key, len)) |
if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds,"|Ozi", kwlist,&TagN,&key,&len | ) |
if | ( | TagN && | tag=tagNumFromPyObject(TagN) = = -1 | ) |
Definition at line 127 of file rpmdb-py.c.
References NULL.
if | ( | ! | PyInt_Checkkey | ) |
Definition at line 180 of file rpmdb-py.c.
References NULL.
if | ( | ! | h=rpmmiNext(mi) | ) |
Definition at line 188 of file rpmdb-py.c.
References NULL, pyrpmError, and rpmmiFree().
|
static |
Definition at line 212 of file rpmdb-py.c.
References rpmdbObject_s::db, NULL, PyObject_Del(), and rpmdbClose().
|
static |
Definition at line 220 of file rpmdb-py.c.
|
static |
Definition at line 226 of file rpmdb-py.c.
return count = 0 |
Definition at line 157 of file rpmdb-py.c.
Referenced by arRead(), arWrite(), compressFilelist(), copyEntry(), copyFile(), cpioRead(), cpioWrite(), db3ccount(), freeFileList(), headerVerifyInfo(), readFile(), rpmcliInstall(), rpmdbCount(), rpmErase(), rpmfiBuildFNames(), rpmioFreePool(), rpmReadPackageFile(), rpmWriteHeaders(), tarRead(), tarWrite(), ufdRead(), and ufdWrite().
h = NULL |
Definition at line 177 of file rpmdb-py.c.
PyObject * ho |
Definition at line 174 of file rpmdb-py.c.
Referenced by hdr_dsFromHeader(), hdr_dsOfHeader(), hdr_fiFromHeader(), rpmds_init(), and rpmfi_init().
|
static |
Definition at line 155 of file rpmdb-py.c.
rpmmiObject* char* key = NULL |
Definition at line 118 of file rpmdb-py.c.
Definition at line 121 of file rpmdb-py.c.
int len = 0 |
Definition at line 119 of file rpmdb-py.c.
Referenced by addReqProv(), compressFilelist(), findPreambleTag(), ftpCommand(), fts_alloc(), fts_build(), fts_load(), fts_maxarglen(), Fts_open(), gidToGname(), glob(), glob_in_dir(), handlePreambleTag(), hdrLoad(), hdrUnload(), headerUnload(), httpReq(), isPart(), jsonstrlen(), miFreeHeader(), pgpGrabPkts(), pgpPrtPkts(), queryArgCallback(), relocateFileList(), rpmdbAdd(), rpmdsNew(), rpmGetFilesystemUsage(), rpmiobNew(), rpmmiInit(), rpmpkgSizeof(), rpmtsSkipFiles(), rpnFormat(), runScript(), sqlstrlen(), uidToUname(), while(), xmlstrlen(), and yamlstrlen().
rpmmi mi = rpmmiInit(s->db, RPMDBI_PACKAGES, NULL, 0) |
Definition at line 159 of file rpmdb-py.c.
Referenced by _rpmtsCheck(), checkDependentConflicts(), checkDependentPackages(), ftsCacheUpdate(), IDTXload(), nwlookupTag(), rpmcliEraseElement(), rpmcliInstall(), rpmdbCheckTerminate(), rpmdbRemove(), rpmErase(), rpmmi_count_get(), rpmmi_each(), rpmmi_new(), rpmmi_next(), rpmmi_offset_get(), rpmmi_pattern(), rpmmi_Wrap(), rpmmiFini(), rpmmiGetPool(), rpmmiInit(), rpmrb_NewMi(), rpmteDBHeader(), rpmtsAddObsoletes(), rpmtsAddUpgrades(), rpmtsCheckInstalledFiles(), rpmtsEraseDebuginfo(), rpmtsFindBaseNamesInDB(), rpmtsFindPubkey(), rpmtsInitIterator(), rpmtsSanityCheck(), rpmtsSolve(), runImmedTriggers(), runTriggersLoop(), unsatisfiedDepend(), and wnlookupTag().
Definition at line 185 of file rpmdb-py.c.
Referenced by Fallocate(), Fseek(), headerVerifyInfo(), regionSwab(), rpmdsELF(), rpmmiInit(), and rpmSingleHeaderFromFD().
|
static |
Definition at line 204 of file rpmdb-py.c.
|
static |
Definition at line 235 of file rpmdb-py.c.
|
static |
Definition at line 141 of file rpmdb-py.c.
int tag = RPMDBI_PACKAGES |
Definition at line 120 of file rpmdb-py.c.