diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-03 08:17:57 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-03 10:50:37 +0300 |
commit | a68bcb383e6b8601a7e4ab8ae67407e59eee0f95 (patch) | |
tree | 50ab12d0f4da8f2e94201a554135df88deae52af /lib/poptQV.c | |
parent | 61432eb77184d9a2dc6da828a18f6d8f33f95812 (diff) | |
download | librpm-tizen-a68bcb383e6b8601a7e4ab8ae67407e59eee0f95.tar.gz librpm-tizen-a68bcb383e6b8601a7e4ab8ae67407e59eee0f95.tar.bz2 librpm-tizen-a68bcb383e6b8601a7e4ab8ae67407e59eee0f95.zip |
Use the common rpmcliQueryFlags for signature verify options in rpm cli too
- Technically this changes the rpmcliQuery() and rpmcliVerify() API
in the sense that we no longer honor the qva->qva_flags for the
--nosignature and others, but we assume anybody using these (as if
anybody was using the "cli" API) uses rpmcliInit() which takes
care of these common bits... shrug.
- Ditch ancient and hidden --nopgp --nogpg switches along with the
dishwater which are simply alias to --nosignature.
- Eliminate now unused qva_flags from rpmInstallArguments (along with
a double vsflags goo from rpmgraph)
Diffstat (limited to 'lib/poptQV.c')
-rw-r--r-- | lib/poptQV.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/poptQV.c b/lib/poptQV.c index 07b31e133..2d8891bfa 100644 --- a/lib/poptQV.c +++ b/lib/poptQV.c @@ -166,18 +166,6 @@ static void queryArgCallback(poptContext con, } break; - case RPMCLI_POPT_NODIGEST: - qva->qva_flags |= VERIFY_DIGEST; - break; - - case RPMCLI_POPT_NOSIGNATURE: - qva->qva_flags |= VERIFY_SIGNATURE; - break; - - case RPMCLI_POPT_NOHDRCHK: - qva->qva_flags |= VERIFY_HDRCHK; - break; - case RPMCLI_POPT_NODEPS: qva->qva_flags |= VERIFY_DEPS; break; @@ -289,21 +277,6 @@ struct poptOption rpmVerifyPoptTable[] = { { "noscripts", '\0', POPT_ARGFLAG_DOC_HIDDEN, NULL, RPMCLI_POPT_NOSCRIPTS, N_("don't execute verify script(s)"), 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 }, - -/** @todo Add --nogpg/--nopgp aliases to rpmpopt, eliminate. */ - { "nogpg", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, - &rpmQVKArgs.qva_flags, VERIFY_SIGNATURE, - N_("don't verify GPG V3 DSA signature(s)"), NULL }, - { "nopgp", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, - &rpmQVKArgs.qva_flags, VERIFY_SIGNATURE, - N_("don't verify PGP V3 RSA/MD5 signature(s)"), NULL }, - POPT_TABLEEND }; @@ -327,13 +300,5 @@ struct poptOption rpmSignPoptTable[] = { { "sign", '\0', POPT_ARGFLAG_DOC_HIDDEN, &rpmQVKArgs.sign, 0, N_("generate signature"), NULL }, - { "nodigest", '\0', POPT_BIT_SET, &rpmQVKArgs.qva_flags, VERIFY_DIGEST, - N_("don't verify package digest(s)"), NULL }, - { "nohdrchk", '\0', POPT_BIT_SET|POPT_ARGFLAG_DOC_HIDDEN, - &rpmQVKArgs.qva_flags, VERIFY_HDRCHK, - N_("don't verify database header(s) when retrieved"), NULL }, - { "nosignature", '\0', POPT_BIT_SET, &rpmQVKArgs.qva_flags, VERIFY_SIGNATURE, - N_("don't verify package signature(s)"), NULL }, - POPT_TABLEEND }; |