summaryrefslogtreecommitdiff
path: root/build/poptBT.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 /build/poptBT.c
parent670ab1c845c0f5f9d252b4599186b4934d20c4b7 (diff)
downloadrpm-5a1ebaccd57b157b70bcd1277f66c5d97e94edf1.tar.gz
rpm-5a1ebaccd57b157b70bcd1277f66c5d97e94edf1.tar.bz2
rpm-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 'build/poptBT.c')
-rw-r--r--build/poptBT.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/build/poptBT.c b/build/poptBT.c
index 179a40d75..6314eaccb 100644
--- a/build/poptBT.c
+++ b/build/poptBT.c
@@ -89,7 +89,7 @@ static void buildArgCallback( /*@unused@*/ poptContext con,
case POPT_TL:
case POPT_TP:
case POPT_TS:
- if (rba->buildMode == ' ') {
+ if (rba->buildMode == '\0' && rba->buildChar == '\0') {
rba->buildMode = (((unsigned)opt->val) >> 8) & 0xff;
rba->buildChar = (opt->val ) & 0xff;
}
@@ -122,6 +122,18 @@ static void buildArgCallback( /*@unused@*/ poptContext con,
strcat(rba->targets, arg);
break;
+ case RPMCLI_POPT_NODIGEST:
+ rba->qva_flags |= VERIFY_DIGEST;
+ break;
+
+ case RPMCLI_POPT_NOSIGNATURE:
+ rba->qva_flags |= VERIFY_SIGNATURE;
+ break;
+
+ case RPMCLI_POPT_NOHDRCHK:
+ rba->qva_flags |= VERIFY_HDRCHK;
+ break;
+
case RPMCLI_POPT_NODEPS:
rba->noDeps = 1;
break;
@@ -212,6 +224,14 @@ struct poptOption rpmBuildPoptTable[] = {
{ "nodirtokens", '\0', POPT_ARG_VAL, &_noDirTokens, 1,
N_("generate package header(s) compatible with (legacy) rpm[23] packaging"),
NULL},
+
+ { "nodigest", '\0', POPT_ARGFLAG_DOC_HIDDEN, 0, RPMCLI_POPT_NODIGEST,
+ N_("don't verify package digest(s)"), NULL },
+ { "nohdrchk", '\0', POPT_ARGFLAG_DOC_HIDDEN, 0, RPMCLI_POPT_NOHDRCHK,
+ N_("don't verify database header(s) when retrieved"), NULL },
+ { "nosignature", '\0', POPT_ARGFLAG_DOC_HIDDEN, 0, RPMCLI_POPT_NOSIGNATURE,
+ N_("don't verify package signature(s)"), NULL },
+
{ "nolang", '\0', POPT_ARGFLAG_DOC_HIDDEN, &noLang, POPT_NOLANG,
N_("do not accept i18N msgstr's from specfile"), NULL},
{ "rmsource", '\0', 0, 0, POPT_RMSOURCE,