rpmqv.c File Reference
`#include "system.h"`
`#include <rpmio.h>`
`#include <rpmiotypes.h>`
`#include <poptIO.h>`
`#include <rpmtypes.h>`
`#include <rpmtag.h>`
`#include "rpmdb.h"`
`#include "rpmversion.h"`
`#include "rpmps.h"`
`#include "rpmts.h"`
`#include "fs.h"`
`#include <rpmbuild.h>`
`#include <rpmcli.h>`
`#include <rpmrollback.h>`
`#include "debug.h"`
Include dependency graph for rpmqv.c:

Go to the source code of this file.

## Macros

#define | _AUTOHELP
#define | MODES_QV (MODE_QUERY | MODE_VERIFY)
#define | MODES_IE (MODE_INSTALL | MODE_ERASE)
#define | MODES_BT (MODE_BUILD | MODE_TARBUILD | MODE_REBUILD | MODE_RECOMPILE)
#define | MODES_K (MODE_CHECKSIG | MODE_RESIGN)
#define | MODES_DB (MODE_INITDB | MODE_REBUILDDB | MODE_VERIFYDB)
#define | MODES_FOR_DBPATH (MODES_BT | MODES_IE | MODES_QV | MODES_DB)
#define | MODES_FOR_NODEPS (MODES_BT | MODES_IE | MODE_VERIFY)
#define | MODES_FOR_TEST (MODES_BT | MODES_IE)
#define | MODES_FOR_ROOT (MODES_BT | MODES_IE | MODES_QV | MODES_DB | MODES_K)

## Enumerations

enum | modes { MODE_QUERY = (1 << 0), MODE_VERIFY = (1 << 3), MODE_INSTALL = (1 << 1), MODE_ERASE = (1 << 2), MODE_BUILD = (1 << 4), MODE_REBUILD = (1 << 5), MODE_RECOMPILE = (1 << 8), MODE_TARBUILD = (1 << 11), MODE_CHECKSIG = (1 << 6), MODE_RESIGN = (1 << 7), MODE_INITDB = (1 << 10), MODE_REBUILDDB = (1 << 12), MODE_VERIFYDB = (1 << 13), MODE_UNKNOWN = 0 }

## Functions

static void | argerror (const char *desc)
static void | printVersion (FILE *fp)
static void | printUsage (poptContext con, FILE *fp, int flags)
int | main (int argc, const char **argv, char **envp)

## Variables

const char * | program_name
static struct poptOption | optionsTable []

## Macro Definition Documentation

#define _AUTOHELP

Definition at line 6 of file rpmqv.c.

#define MODES_BT (MODE_BUILD | MODE_TARBUILD | MODE_REBUILD | MODE_RECOMPILE)

Definition at line 73 of file rpmqv.c.

#define MODES_DB (MODE_INITDB | MODE_REBUILDDB | MODE_VERIFYDB)

Definition at line 82 of file rpmqv.c.

Referenced by main().

#define MODES_FOR_DBPATH (MODES_BT | MODES_IE | MODES_QV | MODES_DB)

Definition at line 88 of file rpmqv.c.

#define MODES_FOR_NODEPS (MODES_BT | MODES_IE | MODE_VERIFY)

Definition at line 89 of file rpmqv.c.

Referenced by main().

#define MODES_FOR_ROOT (MODES_BT | MODES_IE | MODES_QV | MODES_DB | MODES_K)

Definition at line 91 of file rpmqv.c.

Referenced by main().

#define MODES_FOR_TEST (MODES_BT | MODES_IE)

Definition at line 90 of file rpmqv.c.

Referenced by main().

#define MODES_IE (MODE_INSTALL | MODE_ERASE)

Definition at line 67 of file rpmqv.c.

Referenced by main().

#define MODES_K (MODE_CHECKSIG | MODE_RESIGN)

Definition at line 77 of file rpmqv.c.

Referenced by main().

#define MODES_QV (MODE_QUERY | MODE_VERIFY)

Definition at line 63 of file rpmqv.c.

Referenced by main().

## Enumeration Type Documentation

enum modes

Enumerator
MODE_QUERY |
MODE_VERIFY |
MODE_INSTALL |
MODE_ERASE |
MODE_BUILD |
MODE_REBUILD |
MODE_RECOMPILE |
MODE_TARBUILD |
MODE_CHECKSIG |
MODE_RESIGN |
MODE_INITDB |
MODE_REBUILDDB |
MODE_VERIFYDB |
MODE_UNKNOWN |

Definition at line 59 of file rpmqv.c.

## Function Documentation

static void argerror | ( | const char * | desc | ) |

static

Definition at line 161 of file rpmqv.c.

References _, __progname, and EXIT_FAILURE.

Referenced by main().

int main | ( | int | argc,
|  | const char ** | argv,
|  | char ** | envp
| ) |  |

Definition at line 380 of file rpmqv.c.

References _, __progname, _free(), _noTransScripts, _noTransTriggers, argerror(), build(), rpmBuildArguments_s::buildAmount, rpmBuildArguments_s::buildChar, rpmBuildArguments_s::buildMode, rpmBuildArguments_s::cookie, rpmQVKArguments_s::depFlags, EXIT_FAILURE, freeNames(), Getpass, global_depFlags, rpmQVKArguments_s::incldocs, rpmQVKArguments_s::init, INSTALL_ALLMATCHES, INSTALL_ERASE, INSTALL_FRESHEN, INSTALL_HASH, INSTALL_INSTALL, INSTALL_NODEPS, INSTALL_PERCENT, INSTALL_UPGRADE, rpmQVKArguments_s::installInterfaceFlags, MODE_BUILD, MODE_CHECKSIG, MODE_ERASE, MODE_INITDB, MODE_INSTALL, MODE_QUERY, MODE_REBUILD, MODE_REBUILDDB, MODE_RECOMPILE, MODE_RESIGN, MODE_TARBUILD, MODE_UNKNOWN, MODE_VERIFY, MODE_VERIFYDB, MODES_DB, MODES_FOR_NODEPS, MODES_FOR_ROOT, MODES_FOR_TEST, MODES_IE, MODES_K, MODES_QV, rpmQVKArguments_s::noDeps, rpmBuildArguments_s::noDeps, rpmQVKArguments_s::nopassword, rpmBuildArguments_s::nopassword, rpmQVKArguments_s::nrelocations, rpmQVKArguments_s::passPhrase, rpmBuildArguments_s::passPhrase, printUsage(), rpmQVKArguments_s::probFilter, rpmQVKArguments_s::qva_flags, rpmQVKArguments_s::qva_mode, rpmQVKArguments_s::qva_prefix, rpmQVKArguments_s::qva_queryFormat, rpmQVKArguments_s::qva_source, rpmQVKArguments_s::qva_sourceCount, rpmQVKArguments_s::qva_specQuery, rpmQVKArguments_s::rbCheck, rpmQVKArguments_s::rbOrder, rpmQVKArguments_s::rbRun, rpmQVKArguments_s::rbtid, rpmQVKArguments_s::rebuild, rpmQVKArguments_s::relocations, RMIL_CMDLINE, rpmBuildArguments_s::rootdir, rpmBTArgs, RPMBUILD_BUILD, RPMBUILD_CHECK, RPMBUILD_CLEAN, RPMBUILD_FETCHSOURCE, RPMBUILD_FILECHECK, RPMBUILD_INSTALL, RPMBUILD_PACKAGEBINARY, RPMBUILD_PACKAGESOURCE, RPMBUILD_PREP, RPMBUILD_RMBUILD, RPMBUILD_RMSOURCE, RPMBUILD_RMSPEC, RPMBUILD_TRACK, rpmCheckPassPhrase(), rpmcliConfigured(), rpmcliFini(), rpmcliInit(), rpmcliInstall(), rpmcliInstallCheck(), rpmcliInstallOrder(), rpmcliInstallRun(), rpmcliQuery(), rpmcliSign(), rpmcliVerify(), rpmDBArgs, rpmDefineMacro(), rpmErase(), rpmExpandNumeric(), rpmfiAddRelocation(), rpmfiFreeRelocations(), rpmFreeMacros(), rpmFreeRpmrc(), rpmIArgs, rpmIncreaseVerbosity, rpmInstallSource(), rpmioPipeOutput, rpmioRootDir, rpmIsVerbose, RPMPROB_FILTER_FORCERELOCATE, RPMPROB_FILTER_IGNOREARCH, RPMPROB_FILTER_IGNOREOS, RPMPROB_FILTER_OLDPACKAGE, RPMPROB_FILTER_REPLACEPKG, RPMQV_ALL, RPMQV_HDLIST, RPMQV_PACKAGE, rpmQVKArgs, rpmReadConfigFiles(), rpmRollback(), RPMSIGN_ADD_SIGNATURE, RPMSIGN_CHK_SIGNATURE, RPMSIGN_DEL_SIGNATURE, RPMSIGN_IMPORT_PUBKEY, RPMSIGN_NEW_SIGNATURE, RPMSIGN_NONE, rpmspecQuery(), RPMTRANS_FLAG_ALLFILES, RPMTRANS_FLAG_JUSTDB, RPMTRANS_FLAG_NODOCS, RPMTRANS_FLAG_NOFDIGESTS, RPMTRANS_FLAG_NOSCRIPTS, RPMTRANS_FLAG_NOTRIGGERS, RPMTRANS_FLAG_TEST, rpmtsCreate(), rpmtsFree(), rpmtsInitDB(), rpmtsRebuildDB(), rpmtsSetRootDir(), rpmtsSetVSFlags(), rpmtsVerifyDB(), rpmBuildArguments_s::shortCircuit, rpmQVKArguments_s::sign, rpmBuildArguments_s::sign, Stat(), rpmQVKArguments_s::transFlags, URL_IS_UNKNOWN, urlIsURL(), rpmQVKArguments_s::verify, VERIFY_ALL, VERIFY_DIGEST, VERIFY_FDIGEST, VERIFY_HDRCHK, VERIFY_SIGNATURE, vsflags, and xstrdup().

static void printUsage | ( | poptContext | con,
|  | FILE * | fp,
|  | int | flags
| ) |  |

static

Definition at line 179 of file rpmqv.c.

References printVersion(), and rpmIsVerbose.

Referenced by main().

static void printVersion | ( | FILE * | fp | ) |

static

Definition at line 169 of file rpmqv.c.

References __progname, RPM_NAME, rpmEVR, rpmIsVerbose, rpmlibTimestamp(), rpmlibVendor(), and rpmlibVersion().

Referenced by printUsage().

## Variable Documentation

struct poptOption optionsTable[]

static

Definition at line 95 of file rpmqv.c.

const char* program_name