aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2009-01-06 14:05:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2009-01-06 14:05:35 +0000
commit302a5e275fc9e3515a1dac9ff929b537b2c212a3 (patch)
tree004422ef3eb7f8b5f67e22d08dae0b64df5a2de9
parente0a98f3d0e05c3b50b514e54b30c5d5973e73926 (diff)
downloadperl-URPM-302a5e275fc9e3515a1dac9ff929b537b2c212a3.tar
perl-URPM-302a5e275fc9e3515a1dac9ff929b537b2c212a3.tar.gz
perl-URPM-302a5e275fc9e3515a1dac9ff929b537b2c212a3.tar.bz2
perl-URPM-302a5e275fc9e3515a1dac9ff929b537b2c212a3.tar.xz
perl-URPM-302a5e275fc9e3515a1dac9ff929b537b2c212a3.zip
document a "hack"
-rw-r--r--URPM.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/URPM.pm b/URPM.pm
index 87e3906..84ced15 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -97,6 +97,7 @@ sub build_listid {
(($start || 0) .. (defined($end) ? $end : $#{$urpm->{depslist}}));
}
+#- this is used when faking a URPM::DB: $urpm can be used as-a $db
sub traverse {
my ($urpm, $callback) = @_;
@@ -109,6 +110,8 @@ sub traverse {
scalar @{$urpm->{depslist} || []};
}
+
+#- this is used when faking a URPM::DB: $urpm can be used as-a $db
sub traverse_tag {
my ($urpm, $tag, $names, $callback) = @_;
my $count = 0;
@@ -376,6 +379,8 @@ this $urpm. The behaviour of the search is influenced by several options:
Executes the callback for each package in the depslist, passing a
C<URPM::Package> object as argument the callback.
+This is used when faking a URPM::DB: $urpm can be used as-a $db
+
=item $urpm->traverse_tag($tag, $names, $callback)
$tag may be one of C<name>, C<whatprovides>, C<whatrequires>, C<whatconflicts>,
@@ -384,6 +389,8 @@ $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 depslist.
+This is used when faking a URPM::DB: $urpm can be used as-a $db
+
=item URPM::verify_rpm($file, %options)
Verifies an RPM file.