Revert "Add macro _vsflags_query_rpmdb"
This is too flimsy a mechanism for such a critical item as signature checking: with the innocent- and unrelated looking commite3e5db7f39
in place, 'rpm -q foo.rpm' runs with NO signature checking whereas 'rpm -qp foo.rpm' does signature check. Not sane behavior. Also the commit is buggy to begin with, qva->qva_source is not a bitfield so most queries would run with signature checking enabled still. Revisit some day in a different form, maybe. This reverts commitb30fca9eed
.
This commit is contained in:
parent
d8bfe73257
commit
1d32a88181
|
@ -594,14 +594,7 @@ int rpmcliQuery(rpmts ts, QVA_t qva, char * const * argv)
|
|||
qva->qva_queryFormat = fmt;
|
||||
}
|
||||
|
||||
if (!(qva->qva_source & RPMQV_RPM) &&
|
||||
rpmExpandNumeric("%{?_vsflags_query_rpmdb:1}")) {
|
||||
|
||||
vsflags = rpmExpandNumeric("%{?_vsflags_query_rpmdb}");
|
||||
} else {
|
||||
vsflags = rpmExpandNumeric("%{?_vsflags_query}");
|
||||
}
|
||||
|
||||
vsflags = rpmExpandNumeric("%{?_vsflags_query}");
|
||||
if (rpmcliQueryFlags & VERIFY_DIGEST)
|
||||
vsflags |= _RPMVSF_NODIGESTS;
|
||||
if (rpmcliQueryFlags & VERIFY_SIGNATURE)
|
||||
|
|
Loading…
Reference in New Issue