summaryrefslogtreecommitdiff
path: root/lib/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/verify.c')
-rw-r--r--lib/verify.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/verify.c b/lib/verify.c
index 018a0d0a4..7c832d981 100644
--- a/lib/verify.c
+++ b/lib/verify.c
@@ -473,13 +473,12 @@ int rpmcliVerify(rpmts ts, QVA_t qva, char * const * argv)
if (qva->qva_showPackage == NULL)
qva->qva_showPackage = showVerifyPackage;
- /* XXX verify flags are inverted from query. */
vsflags = rpmExpandNumeric("%{?_vsflags_verify}");
- if (!(qva->qva_flags & VERIFY_DIGEST))
+ if (rpmcliQueryFlags & VERIFY_DIGEST)
vsflags |= _RPMVSF_NODIGESTS;
- if (!(qva->qva_flags & VERIFY_SIGNATURE))
+ if (rpmcliQueryFlags & VERIFY_SIGNATURE)
vsflags |= _RPMVSF_NOSIGNATURES;
- if (!(qva->qva_flags & VERIFY_HDRCHK))
+ if (rpmcliQueryFlags & VERIFY_HDRCHK)
vsflags |= RPMVSF_NOHDRCHK;
vsflags &= ~RPMVSF_NEEDPAYLOAD;