#include "system.h"
#include <rpmcli.h>
#include <rpmbuild.h>
#include "rpmdb.h"
#include "rpmps.h"
#include "rpmts.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#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 | printBanner (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 [] |
#define MODES_BT (MODE_BUILD | MODE_TARBUILD | MODE_REBUILD | MODE_RECOMPILE) |
#define MODES_DB (MODE_INITDB | MODE_REBUILDDB | MODE_VERIFYDB) |
Referenced by main().
#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_ROOT (MODES_BT | MODES_IE | MODES_QV | MODES_DB | MODES_K) |
#define MODES_FOR_TEST (MODES_BT | MODES_IE) |
#define MODES_IE (MODE_INSTALL | MODE_ERASE) |
Referenced by main().
#define MODES_K (MODE_CHECKSIG | MODE_RESIGN) |
Referenced by main().
#define MODES_QV (MODE_QUERY | MODE_VERIFY) |
Referenced by main().
enum modes |
static void argerror | ( | const char * | desc | ) | [static] |
Definition at line 126 of file rpmqv.c.
References _, __progname, and EXIT_FAILURE.
Referenced by installArgCallback(), and main().
int main | ( | int | argc, | |
const char ** | argv, | |||
char ** | envp | |||
) |
Definition at line 166 of file rpmqv.c.
References _, __progname, _free(), _noTransScripts, _noTransTriggers, argerror(), bindtextdomain, build(), rpmBuildArguments_s::buildAmount, rpmBuildArguments_s::buildChar, rpmBuildArguments_s::buildMode, rpmBuildArguments_s::buildRootOverride, rpmBuildArguments_s::cookie, dbiTags, environ, rpmInstallArguments_s::eraseInterfaceFlags, errors, EXIT_FAILURE, freeFilesystems(), freeNames(), HAVE_MCHECK_H, HAVE_MTRACE, rpmInstallArguments_s::incldocs, rpmDatabaseArguments_s::init, INSTALL_ERASE, INSTALL_FRESHEN, INSTALL_HASH, INSTALL_INSTALL, INSTALL_NODEPS, INSTALL_PERCENT, INSTALL_UPGRADE, rpmInstallArguments_s::installInterfaceFlags, LIBRPMALIAS_FILENAME, LOCALEDIR, 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, rpmRelocation_s::newPath, rpmInstallArguments_s::noDeps, rpmInstallArguments_s::numRelocations, rpmRelocation_s::oldPath, PACKAGE, rpmQVKArguments_s::passPhrase, rpmBuildArguments_s::passPhrase, rpmInstallArguments_s::prefix, printUsage(), rpmInstallArguments_s::probFilter, rpmQVKArguments_s::qva_flags, rpmQVKArguments_s::qva_mode, rpmQVKArguments_s::qva_queryFormat, rpmQVKArguments_s::qva_source, rpmQVKArguments_s::qva_sourceCount, rpmQVKArguments_s::qva_specQuery, rpmInstallArguments_s::rbtid, rpmDatabaseArguments_s::rebuild, rpmInstallArguments_s::relocations, rpmBuildArguments_s::rootdir, rpmBTArgs, RPMBUILD_BUILD, RPMBUILD_CHECK, RPMBUILD_CLEAN, RPMBUILD_FILECHECK, RPMBUILD_INSTALL, RPMBUILD_PACKAGEBINARY, RPMBUILD_PACKAGESOURCE, RPMBUILD_PREP, RPMBUILD_RMBUILD, RPMBUILD_RMSOURCE, RPMBUILD_RMSPEC, rpmcliConfigured(), rpmCLIMacroContext, rpmcliPipeOutput, rpmcliQuery(), rpmcliRcfile, rpmcliRootDir, rpmcliSign(), rpmcliVerify(), RPMCONFIGDIR, rpmDBArgs, rpmDetectPGPVersion(), rpmErase(), rpmExpandNumeric(), rpmFreeMacros(), rpmFreeRpmrc(), rpmGetPassPhrase(), rpmIArgs, rpmIncreaseVerbosity, rpmInstall(), rpmInstallSource(), rpmIsVerbose, rpmlogClose(), RPMLOOKUPSIG_DISABLE, RPMLOOKUPSIG_QUERY, rpmLookupSignatureType(), RPMMESS_NORMAL, RPMPROB_FILTER_DISKNODES, RPMPROB_FILTER_DISKSPACE, RPMPROB_FILTER_FORCERELOCATE, RPMPROB_FILTER_IGNOREARCH, RPMPROB_FILTER_IGNOREOS, RPMPROB_FILTER_OLDPACKAGE, RPMPROB_FILTER_REPLACEPKG, RPMQV_ALL, RPMQV_HDLIST, RPMQV_PACKAGE, rpmQVKArgs, rpmReadConfigFiles(), rpmRollback(), rpmSetVerbosity, RPMSIGN_ADD_SIGNATURE, RPMSIGN_CHK_SIGNATURE, RPMSIGN_DEL_SIGNATURE, RPMSIGN_IMPORT_PUBKEY, RPMSIGN_NEW_SIGNATURE, RPMSIGN_NONE, RPMSIGTAG_DSA, RPMSIGTAG_GPG, RPMSIGTAG_PGP, RPMSIGTAG_PGP5, RPMSIGTAG_RSA, rpmspecQuery(), RPMTRANS_FLAG_ALLFILES, RPMTRANS_FLAG_JUSTDB, RPMTRANS_FLAG_NODOCS, RPMTRANS_FLAG_NOMD5, RPMTRANS_FLAG_NOSCRIPTS, RPMTRANS_FLAG_NOTRIGGERS, RPMTRANS_FLAG_TEST, rpmtsCreate(), rpmtsFree(), rpmtsInitDB(), rpmtsRebuildDB(), rpmtsSetRootDir(), rpmtsSetVSFlags(), rpmtsVerifyDB(), setlocale, setprogname, rpmBuildArguments_s::shortCircuit, rpmBuildArguments_s::sign, rpmQVKArguments_s::sign, rpmBuildArguments_s::targets, textdomain, rpmInstallArguments_s::transFlags, UNINSTALL_ALLMATCHES, UNINSTALL_NODEPS, URL_IS_UNKNOWN, urlFreeCache(), urlIsURL(), rpmDatabaseArguments_s::verify, VERIFY_ALL, VERIFY_DIGEST, VERIFY_MD5, VERIFY_SIGNATURE, vsflags, xmalloc(), xrealloc(), and xstrdup().
static void printBanner | ( | FILE * | fp | ) | [static] |
static void printUsage | ( | poptContext | con, | |
FILE * | fp, | |||
int | flags | |||
) | [static] |
Definition at line 149 of file rpmqv.c.
References printBanner(), printVersion(), and rpmIsVerbose.
Referenced by main().
static void printVersion | ( | FILE * | fp | ) | [static] |
struct poptOption optionsTable[] [static] |
Definition at line 69 of file rpmqv.c.
Referenced by doSetupMacro(), main(), parseDescription(), parseFiles(), and parseScript().
const char* program_name |