summaryrefslogtreecommitdiff
path: root/lib/poptALL.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-07-28 14:52:33 +0000
committerjbj <devnull@localhost>2002-07-28 14:52:33 +0000
commit5a1ebaccd57b157b70bcd1277f66c5d97e94edf1 (patch)
tree31abb845ee897f1d15c344737376ec8c38e2c00e /lib/poptALL.c
parent670ab1c845c0f5f9d252b4599186b4934d20c4b7 (diff)
downloadlibrpm-tizen-5a1ebaccd57b157b70bcd1277f66c5d97e94edf1.tar.gz
librpm-tizen-5a1ebaccd57b157b70bcd1277f66c5d97e94edf1.tar.bz2
librpm-tizen-5a1ebaccd57b157b70bcd1277f66c5d97e94edf1.zip
- python: don't segfault in ts.GetKeys() on erased packages.
resurrect build modes. add undocumented debugging options. CVS patchset: 5577 CVS date: 2002/07/28 14:52:33
Diffstat (limited to 'lib/poptALL.c')
-rw-r--r--lib/poptALL.c54
1 files changed, 49 insertions, 5 deletions
diff --git a/lib/poptALL.c b/lib/poptALL.c
index 65c97dd45..b90576f78 100644
--- a/lib/poptALL.c
+++ b/lib/poptALL.c
@@ -20,6 +20,33 @@ static int _debug = 0;
/*@-exportheadervar@*/
/*@unchecked@*/
+extern int _fps_debug;
+
+/*@unchecked@*/
+extern int _fsm_debug;
+
+/*@unchecked@*/
+extern int _rpmal_debug;
+
+/*@unchecked@*/
+extern int _rpmdb_debug;
+
+/*@unchecked@*/
+extern int _rpmds_debug;
+
+/*@unchecked@*/
+extern int _rpmfi_debug;
+
+/*@unchecked@*/
+extern int _rpmps_debug;
+
+/*@unchecked@*/
+extern int _rpmte_debug;
+
+/*@unchecked@*/
+extern int _rpmts_debug;
+
+/*@unchecked@*/
extern int noLibio;
/*@=exportheadervar@*/
@@ -49,7 +76,7 @@ extern int _rpmio_debug;
*/
static void printVersion(FILE * fp)
/*@globals rpmEVR, fileSystem @*/
- /*@modifies fileSystem @*/
+ /*@modifies *fp, fileSystem @*/
{
fprintf(fp, _("RPM version %s\n"), rpmEVR);
}
@@ -80,9 +107,9 @@ static void rpmcliAllArgCallback( /*@unused@*/ poptContext con,
/*@unused@*/ enum poptCallbackReason reason,
const struct poptOption * opt, const char * arg,
/*@unused@*/ const void * data)
- /*@globals rpmCLIMacroContext, rpmGlobalMacroContext,
+ /*@globals rpmcliQueryFlags, rpmCLIMacroContext, rpmGlobalMacroContext,
fileSystem, internalState @*/
- /*@modifies rpmCLIMacroContext, rpmGlobalMacroContext,
+ /*@modifies rpmcliQueryFlags, rpmCLIMacroContext, rpmGlobalMacroContext,
fileSystem, internalState @*/
{
@@ -187,8 +214,7 @@ struct poptOption rpmcliAllPoptTable[] = {
N_("ROOT") },
{ "showrc", '\0', 0, NULL, POPT_SHOWRC,
- N_("display final rpmrc and macro configuration"),
- NULL },
+ N_("display final rpmrc and macro configuration"), NULL },
{ "quiet", '\0', 0, NULL, 'q',
N_("provide less detailed output"), NULL},
{ "verbose", 'v', 0, NULL, 'v',
@@ -201,14 +227,32 @@ struct poptOption rpmcliAllPoptTable[] = {
N_("disable use of libio(3) API"), NULL},
#endif
+ { "fpsdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_fps_debug, -1,
+ NULL, NULL},
+ { "fsmdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_fsm_debug, -1,
+ N_("debug payload file state machine"), NULL},
{ "ftpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_ftp_debug, -1,
N_("debug protocol data stream"), NULL},
#ifdef DYING
{ "poptdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_popt_debug, -1,
N_("debug option/argument processing"), NULL},
#endif
+ { "rpmaldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmal_debug, -1,
+ NULL, NULL},
+ { "rpmdbdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmdb_debug, -1,
+ NULL, NULL},
+ { "rpmdsdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmds_debug, -1,
+ NULL, NULL},
+ { "rpmfidebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmfi_debug, -1,
+ NULL, NULL},
{ "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1,
N_("debug rpmio I/O"), NULL},
+ { "rpmpsdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmps_debug, -1,
+ NULL, NULL},
+ { "rpmtedebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmte_debug, -1,
+ NULL, NULL},
+ { "rpmtsdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmts_debug, -1,
+ NULL, NULL},
{ "urldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_url_debug, -1,
N_("debug URL cache handling"), NULL},