aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-16 10:03:49 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-16 10:03:49 +0000
commitf010c86ade0b5102f8fa484c45bc9bae533ed4cb (patch)
treeeba152da7c5ddd12d8ad822c9f8b9c84e71df8de
parentbedd77e2802d44c57ba87d650cbfb0e1a2b5fb4b (diff)
downloadperl-URPM-f010c86ade0b5102f8fa484c45bc9bae533ed4cb.tar
perl-URPM-f010c86ade0b5102f8fa484c45bc9bae533ed4cb.tar.gz
perl-URPM-f010c86ade0b5102f8fa484c45bc9bae533ed4cb.tar.bz2
perl-URPM-f010c86ade0b5102f8fa484c45bc9bae533ed4cb.tar.xz
perl-URPM-f010c86ade0b5102f8fa484c45bc9bae533ed4cb.zip
Add a binding for rpm internal debugging function setVerbosity()
-rw-r--r--URPM.pm5
-rw-r--r--URPM.xs6
2 files changed, 11 insertions, 0 deletions
diff --git a/URPM.pm b/URPM.pm
index be23569..9e65289 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -638,6 +638,11 @@ Delete a macro.
Destroys macros.
+=item setVerbosity($level)
+
+Sets rpm verbosity level. $level is an integer between 2 (RPMMESS_CRIT) and 7
+(RPMMESS_DEBUG).
+
=back
=head1 COPYRIGHT
diff --git a/URPM.xs b/URPM.xs
index 290b3a2..f43984e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3634,4 +3634,10 @@ resetmacros()
PPCODE:
rpmFreeMacros(NULL);
+void
+setVerbosity(level)
+ int level
+ PPCODE:
+ rpmSetVerbosity(level);
+
/* vim:set ts=8 sts=2 sw=2: */