aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs5
1 files changed, 4 insertions, 1 deletions
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