diff options
-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 |