Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

lib/poptQV.c File Reference

Popt tables for query/verify modes. More...

#include "system.h"
#include <rpmcli.h>
#include <rpmbuild.h>
#include "debug.h"

Go to the source code of this file.

Defines

#define POPT_QUERYFORMAT   -1000
#define POPT_WHATREQUIRES   -1001
#define POPT_WHATPROVIDES   -1002
#define POPT_QUERYBYNUMBER   -1003
#define POPT_TRIGGEREDBY   -1004
#define POPT_DUMP   -1005
#define POPT_SPECFILE   -1006
#define POPT_QUERYBYPKGID   -1007
#define POPT_QUERYBYHDRID   -1008
#define POPT_QUERYBYFILEID   -1009
#define POPT_QUERYBYTID   -1010

Functions

void rpmQVSourceArgCallback (poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data)
void queryArgCallback (poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data)

Variables

rpmQVKArguments_s rpmQVKArgs
int specedit = 0
poptOption rpmQVSourcePoptTable []
 Common query/verify mode options. More...

poptOption rpmQueryPoptTable []
 Query mode options. More...

poptOption rpmVerifyPoptTable []
 Verify mode options. More...

poptOption rpmSignPoptTable []
 Signature mode options. More...


Detailed Description

Popt tables for query/verify modes.

Definition in file poptQV.c.


Define Documentation

#define POPT_DUMP   -1005
 

Definition at line 24 of file poptQV.c.

Referenced by queryArgCallback.

#define POPT_QUERYBYFILEID   -1009
 

Definition at line 28 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.

#define POPT_QUERYBYHDRID   -1008
 

Definition at line 27 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.

#define POPT_QUERYBYNUMBER   -1003
 

Definition at line 22 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.

#define POPT_QUERYBYPKGID   -1007
 

Definition at line 26 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.

#define POPT_QUERYBYTID   -1010
 

Definition at line 29 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.

#define POPT_QUERYFORMAT   -1000
 

Definition at line 19 of file poptQV.c.

Referenced by queryArgCallback.

#define POPT_SPECFILE   -1006
 

Definition at line 25 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.

#define POPT_TRIGGEREDBY   -1004
 

Definition at line 23 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.

#define POPT_WHATPROVIDES   -1002
 

Definition at line 21 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.

#define POPT_WHATREQUIRES   -1001
 

Definition at line 20 of file poptQV.c.

Referenced by rpmQVSourceArgCallback.


Function Documentation

void queryArgCallback poptContext    con,
enum poptCallbackReason    reason,
const struct poptOption *    opt,
const char *    arg,
const void *    data
[static]
 

Definition at line 131 of file poptQV.c.

References POPT_DUMP, POPT_QUERYFORMAT, poptStuffArgs, RPMPROB_FILTER_OLDPACKAGE, RPMPROB_FILTER_REPLACENEWFILES, RPMPROB_FILTER_REPLACEOLDFILES, RPMPROB_FILTER_REPLACEPKG, rpmQVKArgs, xmalloc, and xrealloc.

void rpmQVSourceArgCallback poptContext    con,
enum poptCallbackReason    reason,
const struct poptOption *    opt,
const char *    arg,
const void *    data
[static]
 

Definition at line 32 of file poptQV.c.

References POPT_QUERYBYFILEID, POPT_QUERYBYHDRID, POPT_QUERYBYNUMBER, POPT_QUERYBYPKGID, POPT_QUERYBYTID, POPT_SPECFILE, POPT_TRIGGEREDBY, POPT_WHATPROVIDES, POPT_WHATREQUIRES, and rpmQVKArgs.


Variable Documentation

struct poptOption rpmQueryPoptTable[]
 

Query mode options.

Definition at line 218 of file poptQV.c.

struct rpmQVKArguments_s rpmQVKArgs
 

Definition at line 14 of file poptQV.c.

Referenced by main, queryArgCallback, and rpmQVSourceArgCallback.

struct poptOption rpmQVSourcePoptTable[]
 

Common query/verify mode options.

Definition at line 89 of file poptQV.c.

struct poptOption rpmSignPoptTable[]
 

Initial value:

 {
 
 { NULL, '\0', POPT_ARG_CALLBACK | POPT_CBFLAG_INC_DATA | POPT_CBFLAG_CONTINUE,
        rpmQVSourceArgCallback, 0, NULL, NULL },

 { "addsign", '\0', 0, NULL, 'A',
         "sign package(s) (identical to --resign)" , NULL },
 { "checksig", 'K', 0, NULL, 'K',
         "verify package signature(s)" , NULL },
 { "import", '\0', 0, NULL, 'I',
         "import an armored public key" , NULL },
 { "resign", '\0', 0, NULL, 'R',
         "sign package(s) (identical to --addsign)" , NULL },
 { "sign", '\0', POPT_ARGFLAG_DOC_HIDDEN, &rpmQVKArgs.sign, 0,
         "generate signature" , NULL },

 { "nodigest", '\0', POPT_BIT_SET, &rpmQVKArgs.qva_flags, VERIFY_DIGEST,
         "don't verify package digest(s)" , NULL },
 { "nohdrchk", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN,
        &rpmQVKArgs.qva_flags, VERIFY_HDRCHK,
         "don't verify database header(s) when retrieved" , NULL },
 { "nosignature", '\0', POPT_BIT_SET, &rpmQVKArgs.qva_flags, VERIFY_SIGNATURE,
         "don't verify package signature(s)" , NULL },

   POPT_TABLEEND
}
Signature mode options.

Definition at line 360 of file poptQV.c.

struct poptOption rpmVerifyPoptTable[]
 

Verify mode options.

Definition at line 263 of file poptQV.c.

int specedit = 0
 

Definition at line 17 of file poptQV.c.


Generated on Wed Sep 4 12:50:00 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002