aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-20 21:08:12 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-20 21:08:12 +0000
commit8546de8988c5e203a6cf089609b862007b337604 (patch)
tree0b6a56c195d6795bee540dc3408a8f8439e50d24
parentb622efbf507d05404cdc76d20d0f04830b5b1742 (diff)
downloadperl-URPM-8546de8988c5e203a6cf089609b862007b337604.tar
perl-URPM-8546de8988c5e203a6cf089609b862007b337604.tar.gz
perl-URPM-8546de8988c5e203a6cf089609b862007b337604.tar.bz2
perl-URPM-8546de8988c5e203a6cf089609b862007b337604.tar.xz
perl-URPM-8546de8988c5e203a6cf089609b862007b337604.zip
document traverse_db*() return values
-rw-r--r--URPM.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/URPM.pm b/URPM.pm
index b9d1920..b3e223d 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -457,6 +457,8 @@ Rebuilds the RPM database (like C<rpm --rebuilddb>). $prefix defaults to C<"">.
Executes the specified callback (a code reference) for each package
in the DB, passing a C<URPM::Package> object as argument the callback.
+Returns the number of packages seen (all).
+
=item $db->traverse_tag($tag,$names,$callback)
$tag may be one of C<name>, C<whatprovides>, C<whatrequires>, C<whatconflicts>,
@@ -465,12 +467,16 @@ $names is a reference to an array, holding the acceptable values of the said
tag for the searched variables.
Then, $callback is called for each matching package in the DB.
+Returns the number of packages seen (all those that matched provided names).
+
=item $db->traverse_tag_find($tag,$name,$callback)
Quite similar to C<traverse_tag>, but stops when $callback returns true.
(also note that only one $name is handled)
+Returns whether callback returned true once.
+
=item $db->create_transaction()
Creates and returns a new transaction (an C<URPM::Transaction> object) on the