aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-03 13:50:03 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-03 13:50:03 +0000
commitd235367b39a3ab11fe0cada6fa10578c78f35f6e (patch)
tree8617ac938efb4caa11af8971faec44cddba7f84a /URPM.xs
parent02f522328599a7a002ccccc1e4cc27cac0a1c92c (diff)
downloadperl-URPM-d235367b39a3ab11fe0cada6fa10578c78f35f6e.tar
perl-URPM-d235367b39a3ab11fe0cada6fa10578c78f35f6e.tar.gz
perl-URPM-d235367b39a3ab11fe0cada6fa10578c78f35f6e.tar.bz2
perl-URPM-d235367b39a3ab11fe0cada6fa10578c78f35f6e.tar.xz
perl-URPM-d235367b39a3ab11fe0cada6fa10578c78f35f6e.zip
Don't display error messages from rpmVerifySignatures
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