#include "rpmlib.h"#include "rpmurl.h"#include "rpmmacro.h"#include "rpmps.h"#include "argv.h"


Go to the source code of this file.
Data Structures | |
| struct | IDT_s |
| struct | IDTindex_s |
| struct | rpmQVKArguments_s |
| Command line option information. More... | |
| struct | rpmBuildArguments_s |
| Describe build command line request. More... | |
Defines | |
| #define | RPMCLI_POPT_NODEPS -1025 |
| Common/global popt tokens used for command line option tables. | |
| #define | RPMCLI_POPT_FORCE -1026 |
| #define | RPMCLI_POPT_NOFDIGESTS -1027 |
| #define | RPMCLI_POPT_NOSCRIPTS -1028 |
| #define | RPMCLI_POPT_NOSIGNATURE -1029 |
| #define | RPMCLI_POPT_NODIGEST -1030 |
| #define | RPMCLI_POPT_NOHDRCHK -1031 |
| #define | RPMCLI_POPT_NOCONTEXTS -1032 |
| #define | RPMCLI_POPT_TARGETPLATFORM -1033 |
Functions | |
| poptContext | rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable) |
| Initialize most everything needed by an rpm CLI executable context. | |
| void | rpmcliConfigured (void) |
| Make sure that rpm configuration has been read. | |
| poptContext | rpmcliFini (poptContext optCon) |
| Destroy most everything needed by an rpm CLI executable context. | |
Variables | |
| int | _noDirTokens |
| Should version 3 packages be produced? | |
| struct poptOption | rpmcliAllPoptTable [] |
| Popt option table for options shared by all modes and executables. | |
| int | ftsOpts |
| struct poptOption | rpmcliFtsPoptTable [] |
| int | global_depFlags |
| struct poptOption | rpmcliDepFlagsPoptTable [] |
| const char * | rpmcliPipeOutput |
| const char * | rpmcliRcfile |
| const char * | rpmcliRootDir |
| const char * | rpmcliTargets |
| struct rpmQVKArguments_s | rpmQVKArgs |
| struct rpmQVKArguments_s | rpmIArgs |
| struct rpmQVKArguments_s | rpmDBArgs |
RPMDB | |
| struct poptOption | rpmDatabasePoptTable [] |
Definition in file rpmcli.h.
| #define _QUERY_FOR_BITS |
| #define RPMCLI_POPT_FORCE -1026 |
Definition at line 99 of file rpmcli.h.
Referenced by buildArgCallback(), installArgCallback(), and queryArgCallback().
| #define RPMCLI_POPT_NOCONTEXTS -1032 |
Definition at line 105 of file rpmcli.h.
Referenced by installArgCallback(), and queryArgCallback().
| #define RPMCLI_POPT_NODEPS -1025 |
Common/global popt tokens used for command line option tables.
Definition at line 98 of file rpmcli.h.
Referenced by buildArgCallback(), installArgCallback(), and queryArgCallback().
| #define RPMCLI_POPT_NODIGEST -1030 |
Definition at line 103 of file rpmcli.h.
Referenced by buildArgCallback(), installArgCallback(), queryArgCallback(), and rpmcliAllArgCallback().
| #define RPMCLI_POPT_NOFDIGESTS -1027 |
Definition at line 100 of file rpmcli.h.
Referenced by installArgCallback(), and queryArgCallback().
| #define RPMCLI_POPT_NOHDRCHK -1031 |
Definition at line 104 of file rpmcli.h.
Referenced by buildArgCallback(), installArgCallback(), queryArgCallback(), and rpmcliAllArgCallback().
| #define RPMCLI_POPT_NOSCRIPTS -1028 |
Definition at line 101 of file rpmcli.h.
Referenced by installArgCallback(), and queryArgCallback().
| #define RPMCLI_POPT_NOSIGNATURE -1029 |
Definition at line 102 of file rpmcli.h.
Referenced by buildArgCallback(), installArgCallback(), queryArgCallback(), and rpmcliAllArgCallback().
| #define RPMCLI_POPT_TARGETPLATFORM -1033 |
| #define RPMVERIFY_ALL ~(RPMVERIFY_NONE) |
Definition at line 160 of file rpmcli.h.
Referenced by processPackageFiles(), and processSourceFiles().
| #define RPMVERIFY_FAILURES (RPMVERIFY_LSTATFAIL|RPMVERIFY_READFAIL|RPMVERIFY_READLINKFAIL|RPMVERIFY_LGETFILECONFAIL) |
| #define RPMVERIFY_MD5 RPMVERIFY_FDIGEST |
| #define VERIFY_ALL |
Value:
( VERIFY_ATTRS | VERIFY_FILES | VERIFY_DEPS | VERIFY_SCRIPT | VERIFY_DIGEST |\ VERIFY_SIGNATURE | VERIFY_HDRCHK )
Definition at line 244 of file rpmcli.h.
Referenced by main().
| #define VERIFY_ATTRS |
Value:
( VERIFY_FDIGEST | VERIFY_SIZE | VERIFY_LINKTO | VERIFY_USER | VERIFY_GROUP | \ VERIFY_MTIME | VERIFY_MODE | VERIFY_RDEV | VERIFY_CONTEXTS )
Definition at line 241 of file rpmcli.h.
Referenced by verifyHeader().
| void rpmcliConfigured | ( | void | ) |
Make sure that rpm configuration has been read.
Definition at line 150 of file poptALL.c.
References _free(), EXIT_FAILURE, rpmcliInitialized, rpmcliRcfile, rpmcliTargets, rpmReadConfigFiles(), and xstrdup().
Referenced by main(), rpmcliAllArgCallback(), and rpmcliInit().
| poptContext rpmcliFini | ( | poptContext | optCon | ) |
Destroy most everything needed by an rpm CLI executable context.
| optCon | popt context |
Definition at line 480 of file poptALL.c.
References _free(), headerTagIndices_s::byName, headerTagIndices_s::byValue, rpmCLIMacroContext, rpmcliTargets, rpmFreeFilesystems(), rpmFreeMacros(), rpmFreeRpmrc(), rpmlogClose(), rpmTags, and urlFreeCache().
Referenced by main(), and rpmcliAllArgCallback().
| 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 510 of file poptALL.c.
References _, __progname, _debug, bindtextdomain, EXIT_FAILURE, LOCALEDIR, PACKAGE, rpmcliConfigured(), rpmIncreaseVerbosity, RPMMESS_NORMAL, RPMPOPTFILE, rpmSetVerbosity, setlocale, setprogname, textdomain, and USRLIBRPM.
Referenced by main().
Check package and header signatures.
| qva | parsed query/verify options | |
| ts | transaction set | |
| fd | package file handle | |
| fn | package file name |
Definition at line 725 of file rpmchecksig.c.
References _, _free(), _print_pkts, fdInitDigest(), pgpDigParams_s::hash_algo, headerFreeData(), headerFreeIterator(), headerGetEntry(), headerInitIterator(), headerIsEntry(), headerNextIterator(), rpmlead::major, pgpCleanDig(), PGPHASHALGO_MD5, PGPHASHALGO_SHA1, pgpPrtPkts(), rpmQVKArguments_s::qva_flags, readFile(), readLead(), RPMERR_BADSIGTYPE, RPMERR_READLEAD, RPMERR_SIGGEN, RPMERR_SIGVFY, rpmError, rpmFreeSignature(), rpmIsDebug, rpmIsVerbose, RPMRC_NOKEY, RPMRC_NOTTRUSTED, RPMRC_OK, rpmReadSignature(), RPMSIGTAG_DSA, RPMSIGTAG_GPG, RPMSIGTAG_LEMD5_1, RPMSIGTAG_LEMD5_2, RPMSIGTAG_MD5, RPMSIGTAG_PGP, RPMSIGTAG_PGP5, RPMSIGTAG_RSA, RPMSIGTAG_SHA1, RPMSIGTAG_SIZE, rpmtsCleanDig(), rpmtsDig(), rpmtsSetSig(), rpmtsSignature(), rpmVerifySignature(), pgpDig_s::signature, rpmlead::signature_type, stpcpy(), stpncpy(), VERIFY_DIGEST, VERIFY_SIGNATURE, and pgpDigParams_s::version.
Referenced by rpmcliSign().
| int ftsOpts |
| int global_depFlags |
| struct poptOption rpmcliDepFlagsPoptTable[] |
| struct poptOption rpmcliFtsPoptTable[] |
| const char* rpmcliPipeOutput |
| const char* rpmcliRcfile |
Definition at line 113 of file poptALL.c.
Referenced by main(), rpmcliConfigured(), rpmRebuildTargetVars(), rpmShowRC(), and rpmspecQuery().
| const char* rpmcliRootDir |
| const char* rpmcliTargets |
Definition at line 122 of file poptALL.c.
Referenced by rpmcliAllArgCallback(), rpmcliConfigured(), rpmcliFini(), and rpmspecQuery().
1.5.7.1