#include "system.h"
#include <rpmcli.h>
#include <fts.h>
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | POPT_SHOWVERSION -999 |
#define | POPT_SHOWRC -998 |
#define | POPT_QUERYTAGS -997 |
#define | POPT_PREDEFINE -996 |
Functions | |
static void | printVersion (FILE *fp) |
Display rpm version. | |
void | rpmcliConfigured (void) |
Make sure that rpm configuration has been read. | |
static void | rpmcliAllArgCallback (poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data) |
poptContext | rpmcliFini (poptContext optCon) |
Destroy most everything needed by an rpm CLI executable context. | |
poptContext | rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable) |
Initialize most everything needed by an rpm CLI executable context. | |
Variables | |
const char * | program_name |
static int | _debug = 0 |
int | _rpmds_nopromote |
int | _fps_debug |
int | _fsm_debug |
int | _fsm_threads |
int | _hdr_debug |
int | _print_pkts |
int | _psm_debug |
int | _psm_threads |
int | _rpmal_debug |
int | _rpmdb_debug |
int | _rpmds_debug |
int | _rpmfc_debug |
int | _rpmfi_debug |
int | _rpmgi_debug |
int | _rpmps_debug |
int | _rpmsq_debug |
int | _rpmsx_debug |
int | _rpmte_debug |
int | _rpmts_debug |
int | _rpmts_stats |
int | noLibio |
const char * | rpmcliPipeOutput = NULL |
const char * | rpmcliRcfile = NULL |
const char * | rpmcliRootDir = "/" |
rpmQueryFlags | rpmcliQueryFlags |
Bit(s) from common command line options. | |
int | _ftp_debug |
int | _av_debug |
int | _dav_debug |
int | noLibio |
int | _rpmio_debug |
static int | rpmcliInitialized = -1 |
int | ftsOpts = 0 |
poptOption | rpmcliFtsPoptTable [] |
poptOption | rpmcliAllPoptTable [] |
Popt option table for options shared by all modes and executables. |
Definition in file poptALL.c.
#define POPT_PREDEFINE -996 |
#define POPT_QUERYTAGS -997 |
#define POPT_SHOWRC -998 |
#define POPT_SHOWVERSION -999 |
static void printVersion | ( | FILE * | fp | ) | [static] |
static void rpmcliAllArgCallback | ( | poptContext | con, | |
enum poptCallbackReason | reason, | |||
const struct poptOption * | opt, | |||
const char * | arg, | |||
const void * | data | |||
) | [static] |
Definition at line 152 of file poptALL.c.
References _free(), POPT_PREDEFINE, POPT_QUERYTAGS, POPT_SHOWRC, POPT_SHOWVERSION, printVersion(), RMIL_CMDLINE, RPMCLI_POPT_NODIGEST, RPMCLI_POPT_NOHDRCHK, RPMCLI_POPT_NOSIGNATURE, rpmcliConfigured(), rpmcliInitialized, rpmCLIMacroContext, rpmcliQueryFlags, rpmDefineMacro(), rpmDisplayQueryTags(), rpmExpand(), rpmIncreaseVerbosity, RPMMESS_QUIET, rpmSetVerbosity, rpmShowRC(), VERIFY_DIGEST, VERIFY_HDRCHK, and VERIFY_SIGNATURE.
void rpmcliConfigured | ( | void | ) |
Make sure that rpm configuration has been read.
Definition at line 136 of file poptALL.c.
References EXIT_FAILURE, rpmcliInitialized, rpmcliRcfile, and rpmReadConfigFiles().
Referenced by main(), rpmcliAllArgCallback(), and rpmcliInit().
poptContext rpmcliFini | ( | poptContext | optCon | ) |
poptContext rpmcliInit | ( | int | argc, | |
char *const | argv[], | |||
struct poptOption * | optionsTable | |||
) |
Initialize most everything needed by an rpm CLI executable context.
argc | no. of args | |
argv | arg array | |
optionsTable | popt option table |
Definition at line 391 of file poptALL.c.
References _, __progname, _debug, bindtextdomain, EXIT_FAILURE, LIBRPMALIAS_FILENAME, LOCALEDIR, PACKAGE, rpmcliConfigured(), RPMCONFIGDIR, rpmIncreaseVerbosity, RPMMESS_NORMAL, rpmSetVerbosity, setlocale, setprogname, and textdomain.
Referenced by main().
int _dav_debug |
int _debug = 0 [static] |
Definition at line 23 of file poptALL.c.
Referenced by db3associate(), db3cclose(), db3ccount(), db3cdel(), db3cdup(), db3cget(), db3close(), db3copen(), db3cpget(), db3cput(), db3join(), db3open(), db3stat(), db3sync(), db_fini(), db_init(), ftsPrint(), pgpHexSet(), pgpPrtPubkeyParams(), pgpPrtSig(), pgpPrtSigParams(), and rpmcliInit().
int _fps_debug |
int _fsm_debug |
int _fsm_threads |
int _ftp_debug |
Definition at line 126 of file rpmio.c.
Referenced by checkResponse(), ftpLstat(), ftpOpendir(), ftpReadlink(), ftpStat(), and tcpConnect().
int _hdr_debug |
int _print_pkts |
Definition at line 25 of file rpmchecksig.c.
int _psm_debug |
int _psm_threads |
int _rpmal_debug |
Definition at line 18 of file rpmal.c.
Referenced by fieCompare(), rpmal_Debug(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), and rpmalDel().
int _rpmdb_debug |
int _rpmds_debug |
Definition at line 20 of file rpmds.c.
Referenced by archFilter(), rpmds_alloc(), rpmds_Debug(), rpmds_free(), rpmds_init(), rpmds_new(), rpmdsFilter(), rpmdsFree(), rpmdsNew(), rpmdsNext(), XrpmdsLink(), and XrpmdsUnlink().
int _rpmds_nopromote |
Definition at line 23 of file rpmds.c.
Referenced by checkPackageSet(), ensureOlder(), rpmdsNew(), rpmtsAddInstallElement(), setEpochPromote(), and unsatisfiedDepend().
int _rpmfc_debug |
int _rpmfi_debug |
Definition at line 34 of file rpmfi.c.
Referenced by rpmfi_alloc(), rpmfi_Debug(), rpmfi_free(), rpmfi_init(), rpmfi_new(), rpmfiFree(), rpmfiNext(), rpmfiNextD(), XrpmfiLink(), and XrpmfiUnlink().
int _rpmgi_debug |
Definition at line 26 of file rpmgi.c.
Referenced by rpmgiInitFilter(), rpmgiNext(), rpmgiWalkPathFilter(), XrpmgiLink(), and XrpmgiUnlink().
int _rpmio_debug |
Definition at line 116 of file rpmio.c.
Referenced by Access(), Closedir(), fdFgets(), Fdopen(), fdWritable(), Fopen(), Glob(), Globfree(), Link(), Lstat(), Opendir(), Readdir(), Rename(), Stat(), ufdOpen(), ufdRead(), and ufdWrite().
int _rpmps_debug |
int _rpmsq_debug |
int _rpmsx_debug |
Definition at line 17 of file rpmsx.c.
Referenced by rpmsxFree(), rpmsxNext(), XrpmsxLink(), and XrpmsxUnlink().
int _rpmte_debug |
Definition at line 20 of file rpmte.c.
Referenced by rpmte_Debug(), XrpmtsiFree(), and XrpmtsiInit().
int _rpmts_debug |
Definition at line 66 of file rpmts.c.
Referenced by rpmts_AddErase(), rpmts_AddInstall(), rpmts_alloc(), rpmts_Check(), rpmts_Clean(), rpmts_CloseDB(), rpmts_Create(), rpmts_dealloc(), rpmts_Debug(), rpmts_free(), rpmts_GetKeys(), rpmts_HdrCheck(), rpmts_HdrFromFdno(), rpmts_IDTXglob(), rpmts_IDTXload(), rpmts_init(), rpmts_InitDB(), rpmts_iternext(), rpmts_Match(), rpmts_new(), rpmts_Next(), rpmts_OpenDB(), rpmts_Order(), rpmts_PgpImportPubkey(), rpmts_PgpPrtPkts(), rpmts_Problems(), rpmts_RebuildDB(), rpmts_Rollback(), rpmts_Run(), rpmts_SetColor(), rpmts_SetFlags(), rpmts_SetProbFilter(), rpmts_SetVSFlags(), rpmts_SolveCallback(), rpmts_VerifyDB(), rpmtsAddAvailableElement(), rpmtsCallback(), XrpmtsLink(), and XrpmtsUnlink().
int _rpmts_stats |
int ftsOpts = 0 |
int noLibio |
const char* program_name |
struct poptOption rpmcliFtsPoptTable[] |
Initial value:
{ { "comfollow", '\0', POPT_BIT_SET, &ftsOpts, FTS_COMFOLLOW, "FTS_COMFOLLOW: follow command line symlinks" , NULL }, { "logical", '\0', POPT_BIT_SET, &ftsOpts, FTS_LOGICAL, "FTS_LOGICAL: logical walk" , NULL }, { "nochdir", '\0', POPT_BIT_SET, &ftsOpts, FTS_NOCHDIR, "FTS_NOCHDIR: don't change directories" , NULL }, { "nostat", '\0', POPT_BIT_SET, &ftsOpts, FTS_NOSTAT, "FTS_NOSTAT: don't get stat info" , NULL }, { "physical", '\0', POPT_BIT_SET, &ftsOpts, FTS_PHYSICAL, "FTS_PHYSICAL: physical walk" , NULL }, { "seedot", '\0', POPT_BIT_SET, &ftsOpts, FTS_SEEDOT, "FTS_SEEDOT: return dot and dot-dot" , NULL }, { "xdev", '\0', POPT_BIT_SET, &ftsOpts, FTS_XDEV, "FTS_XDEV: don't cross devices" , NULL }, { "whiteout", '\0', POPT_BIT_SET, &ftsOpts, FTS_WHITEOUT, "FTS_WHITEOUT: return whiteout information" , NULL }, POPT_TABLEEND }
int rpmcliInitialized = -1 [static] |
Definition at line 119 of file poptALL.c.
Referenced by rpmcliAllArgCallback(), and rpmcliConfigured().
const char* rpmcliPipeOutput = NULL |
const char* rpmcliRcfile = NULL |
const char* rpmcliRootDir = "/" |