lib/tgi.c File Reference

#include "system.h"
#include <rpmio_internal.h>
#include <rpmgi.h>
#include <rpmcli.h>
#include <rpmte.h>
#include <rpmmacro.h>
#include <rpmmessages.h>
#include <popt.h>
#include "debug.h"

Go to the source code of this file.

Functions

static const char * rpmgiPathOrQF (const rpmgi gi)
int main (int argc, char *const argv[])

Variables

static const char * gitagstr = "packages"
static const char * gikeystr = NULL
static rpmtransFlags transFlags = 0
static const char * queryFormat = NULL
static const char * defaultQueryFormat
static struct poptOption optionsTable []


Function Documentation

int main ( int  argc,
char *const   argv[] 
)

Definition at line 88 of file tgi.c.

References _, _free(), _RPMVSF_NODIGESTS, _RPMVSF_NOSIGNATURES, EXIT_FAILURE, FTS_COMFOLLOW, FTS_LOGICAL, FTS_NOSTAT, ftsOpts, giFlags, gikeystr, gitagstr, optionsTable, rpmcliFini(), rpmcliInit(), rpmcliQueryFlags, RPMDBI_PACKAGES, rpmExpandNumeric(), RPMGI_TSADD, RPMGI_TSORDER, rpmgiFree(), rpmgiNew(), rpmgiNext(), rpmgiPathOrQF(), rpmgiSetArgs(), RPMRC_OK, rpmteDegree(), rpmteDepth(), rpmteNEVRA(), rpmteTree(), rpmteType(), rpmtsCreate(), rpmtsFree(), rpmtsiFree, rpmtsiInit, rpmtsiNext(), rpmtsNElements(), rpmtsSetFlags(), rpmtsSetTid(), rpmtsSetVSFlags(), rpmtsUnorderedSuccessors(), RPMVSF_NOHDRCHK, tagValue(), TR_REMOVED, transFlags, VERIFY_DIGEST, VERIFY_HDRCHK, VERIFY_SIGNATURE, and vsflags.

static const char* rpmgiPathOrQF ( const rpmgi  gi  )  [static]

Definition at line 27 of file tgi.c.

References defaultQueryFormat, headerSprintf(), queryFormat, rpmgiHdrPath(), rpmgiHeader(), rpmHeaderFormats, rpmTagTable, and xstrdup().

Referenced by main().


Variable Documentation

const char* defaultQueryFormat [static]

Initial value:

        "%{name}-%{version}-%{release}.%|SOURCERPM?{%{arch}.rpm}:{%|ARCH?{src.rpm}:{pubkey}|}|"

Definition at line 23 of file tgi.c.

Referenced by rpmgiPathOrQF().

const char* gikeystr = NULL [static]

Definition at line 16 of file tgi.c.

Referenced by main().

const char* gitagstr = "packages" [static]

Definition at line 15 of file tgi.c.

Referenced by main().

struct poptOption optionsTable[] [static]

Definition at line 45 of file tgi.c.

const char* queryFormat = NULL [static]

Definition at line 22 of file tgi.c.

Referenced by rpmgiPathOrQF().

rpmtransFlags transFlags = 0 [static]

Definition at line 17 of file tgi.c.

Referenced by main(), rpmRollback(), rpmts_Rollback(), and rpmts_SetFlags().


Generated on Tue Feb 19 23:28:27 2008 for rpm by  doxygen 1.5.1