From d235367b39a3ab11fe0cada6fa10578c78f35f6e Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 3 Mar 2006 13:50:03 +0000 Subject: Don't display error messages from rpmVerifySignatures --- URPM.xs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/URPM.xs b/URPM.xs index 63118ac..e059cc7 100644 --- a/URPM.xs +++ b/URPM.xs @@ -3342,10 +3342,12 @@ Urpm_verify_rpm(filename, ...) char *filename PREINIT: FD_t fd; - int i; + int i, oldlogmask; rpmts ts = NULL; struct rpmQVKArguments_s qva; CODE: + /* Don't display error messages */ + oldlogmask = rpmlogSetMask(RPMLOG_UPTO(RPMLOG_PRI(4))); memset(&qva, 0, sizeof(struct rpmQVKArguments_s)); qva.qva_source = RPMQV_RPM; qva.qva_flags = VERIFY_ALL; @@ -3373,6 +3375,7 @@ Urpm_verify_rpm(filename, ...) } rpmtsFree(ts); } + rpmlogSetMask(oldlogmask); OUTPUT: RETVAL -- cgit v1.2.1