aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-07-06 13:09:07 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-07-06 13:09:07 +0000
commite10c66d2d81ae1403cd29aab2bbd0561e178bff1 (patch)
treeca281a26f5ec806be69053fa61a3902c8c84555c
parente1307c3f7610255db226c7a0c460636090609369 (diff)
downloadperl-URPM-e10c66d2d81ae1403cd29aab2bbd0561e178bff1.tar
perl-URPM-e10c66d2d81ae1403cd29aab2bbd0561e178bff1.tar.gz
perl-URPM-e10c66d2d81ae1403cd29aab2bbd0561e178bff1.tar.bz2
perl-URPM-e10c66d2d81ae1403cd29aab2bbd0561e178bff1.tar.xz
perl-URPM-e10c66d2d81ae1403cd29aab2bbd0561e178bff1.zip
document URPM::DB::convert() in API
-rw-r--r--NEWS1
-rw-r--r--URPM.pm7
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5becb27..5377542 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
Version 4.36 - 6 July 2011, by Per Øyvind Karlsen
+- document URPM::DB::convert() in API
- fix a segfault happening when URPM::DB::convert() is run without arguments
Version 4.35 - 5 July 2011, by Per Øyvind Karlsen
diff --git a/URPM.pm b/URPM.pm
index 4d542ea..81d3bfa 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -446,6 +446,13 @@ If type is unknown, 'array' will be undefined, if database is empty, 'ordering'
will be undefined.
If no rpm database is found under $prefix, 0 will be returned.
+=item convert($prefix, $type, $swap=0, $rebuild=0)
+
+Convert the rpmdb in $prefix to $type (only "hash" and "btree" is currently
+supported).
+If $swap is 1, swab to big endian, if -1, swab to little endian.
+If $rebuild is true, rebuild the rpmdb after the conversion.
+
=item rebuild($prefix)
Rebuilds the RPM database (like C<rpm --rebuilddb>). $prefix defaults to C<"">.