diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-01-20 21:08:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-01-20 21:08:12 +0000 |
commit | 8546de8988c5e203a6cf089609b862007b337604 (patch) | |
tree | 0b6a56c195d6795bee540dc3408a8f8439e50d24 | |
parent | b622efbf507d05404cdc76d20d0f04830b5b1742 (diff) | |
download | perl-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.pm | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |