summaryrefslogtreecommitdiff
path: root/tools/rpmgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rpmgraph.c')
-rw-r--r--tools/rpmgraph.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/rpmgraph.c b/tools/rpmgraph.c
index 529c4544a..601055a63 100644
--- a/tools/rpmgraph.c
+++ b/tools/rpmgraph.c
@@ -274,10 +274,6 @@ static struct poptOption optionsTable[] = {
N_("don't verify package dependencies"), NULL },
{ "nolegacy", '\0', POPT_BIT_CLR, &vsflags, _RPMTS_VSF_VERIFY_LEGACY,
N_("don't verify header+payload signature"), NULL },
- { "nodigest", '\0', POPT_BIT_SET, &vsflags, _RPMTS_VSF_NODIGESTS,
- N_("don't verify package digest"), NULL },
- { "nosignature", '\0', POPT_BIT_SET, &vsflags, _RPMTS_VSF_NOSIGNATURES,
- N_("don't verify package signature"), NULL },
{ "nochainsaw", '\0', POPT_ARGFLAG_DOC_HIDDEN, &noChainsaw, 0,
NULL, NULL},
@@ -304,6 +300,12 @@ main(int argc, char *const argv[])
exit(EXIT_FAILURE);
ts = rpmtsCreate();
+ if (rpmcliQueryFlags & VERIFY_DIGEST)
+ vsflags |= _RPMTS_VSF_NODIGESTS;
+ if (rpmcliQueryFlags & VERIFY_SIGNATURE)
+ vsflags |= _RPMTS_VSF_NOSIGNATURES;
+ if (rpmcliQueryFlags & VERIFY_HDRCHK)
+ vsflags |= _RPMTS_VSF_NOHDRCHK;
(void) rpmtsSetVerifySigFlags(ts, vsflags);
ec = rpmGraph(ts, ia, poptGetArgs(optCon));