summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-06-30 22:47:32 +0000
committerjbj <devnull@localhost>2002-06-30 22:47:32 +0000
commit8c4991e9d533de552b957ea445d65f6834205f29 (patch)
tree159a3aaa6575611308382acbadba3a55d9856bd5 /rpmqv.c
parent10e3aaa69f3d7f74958e3dd0d0b471b296a1bb23 (diff)
downloadlibrpm-tizen-8c4991e9d533de552b957ea445d65f6834205f29.tar.gz
librpm-tizen-8c4991e9d533de552b957ea445d65f6834205f29.tar.bz2
librpm-tizen-8c4991e9d533de552b957ea445d65f6834205f29.zip
- warn only once for each NOKEY/UNTRUSTED key id.
- factor common options into table, add rpmcliInit() and rpmcliFini(). - add preliminary rpmgraph(8) and rpmcache(8) executables to rpm-devel. CVS patchset: 5535 CVS date: 2002/06/30 22:47:32
Diffstat (limited to 'rpmqv.c')
-rwxr-xr-xrpmqv.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 513f25174..a9a1e3de7 100755
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -34,7 +34,6 @@
#include "debug.h"
-#define GETOPT_DBPATH 1010
#define GETOPT_SHOWRC 1018
#define GETOPT_DEFINEMACRO 1020
#define GETOPT_EVALMACRO 1021
@@ -94,13 +93,16 @@ static int help = 0;
/*@unchecked@*/
static int noUsageMsg = 0;
/*@unchecked@*/
-/*@observer@*/ /*@null@*/ static const char * pipeOutput = NULL;
+/*@observer@*/ /*@null@*/
+static const char * pipeOutput = NULL;
/*@unchecked@*/
static int quiet = 0;
/*@unchecked@*/
-/*@observer@*/ /*@null@*/ static const char * rcfile = NULL;
+/*@observer@*/ /*@null@*/
+static const char * rcfile = NULL;
/*@unchecked@*/
-/*@observer@*/ /*@null@*/ static char * rootdir = "/";
+/*@observer@*/ /*@null@*/
+static char * rootdir = "/";
/*@unchecked@*/
static int showrc = 0;
/*@unchecked@*/
@@ -116,17 +118,13 @@ static struct poptOption rpmAllPoptTable[] = {
{ "verbose", 'v', 0, 0, 'v',
N_("provide more detailed output"), NULL},
{ "define", '\0', POPT_ARG_STRING, 0, GETOPT_DEFINEMACRO,
- N_("define macro <name> with value <body>"),
- N_("'<name> <body>'") },
+ N_("define MACRO with value EXPR"), N_("'MACRO EXPR'") },
{ "eval", '\0', POPT_ARG_STRING, 0, GETOPT_EVALMACRO,
- N_("print macro expansion of <expr>+"),
- N_("<expr>+") },
+ N_("print macro expansion of EXPR"), N_("'EXPR'") },
{ "pipe", '\0', POPT_ARG_STRING|POPT_ARGFLAG_DOC_HIDDEN, &pipeOutput, 0,
- N_("send stdout to <cmd>"),
- N_("<cmd>") },
+ N_("send stdout to <cmd>"), N_("<cmd>") },
{ "root", 'r', POPT_ARG_STRING | POPT_ARGFLAG_SHOW_DEFAULT, &rootdir, 0,
- N_("use <dir> as the top level directory"),
- N_("<dir>") },
+ N_("use <dir> as the top level directory"), N_("<dir>") },
{ "macros", '\0', POPT_ARG_STRING, &macrofiles, 0,
N_("read <file:...> instead of default macro file(s)"),
N_("<file:...>") },