aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-15 11:28:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-15 11:28:52 +0000
commit3f4c71947f952b05f5b58f26c032d5a3ae769526 (patch)
tree85f03cfab9a3743297b5d5c641232ecaf813c71e
parent3b75e23168713d7bd1726297d4fcf8f525547038 (diff)
downloadperl-URPM-1.48.tar
perl-URPM-1.48.tar.gz
perl-URPM-1.48.tar.bz2
perl-URPM-1.48.tar.xz
perl-URPM-1.48.zip
make the prototype of parse_synthesis more clear in the pod1.48
-rw-r--r--URPM.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/URPM.pm b/URPM.pm
index a04c063..9169e18 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -10,7 +10,7 @@ use URPM::Resolve;
use URPM::Signature;
our @ISA = qw(DynaLoader);
-our $VERSION = '1.47';
+our $VERSION = '1.48';
URPM->bootstrap($VERSION);
@@ -24,7 +24,7 @@ sub new {
$self;
}
-sub set_nofatal { $_[0]->{nofatal} = $_[1] }
+sub set_nofatal { $_[0]{nofatal} = $_[1] }
sub search {
my ($urpm, $name, %options) = @_;
@@ -81,7 +81,7 @@ sub search {
sub build_listid {
my ($urpm, $start, $end, $listid) = @_;
- @{$listid || []} > 0 ? @{$listid} :
+ @{$listid || []} > 0 ? @$listid :
(($start || 0) .. (defined($end) ? $end : $#{$urpm->{depslist}}));
}
@@ -268,7 +268,7 @@ epoch C<== 0>.
B<Warning>: $nopromoteepoch actually defaults to 1, so if you're going to
pass a variable, make sure undef is treated like 1, not 0.
-=item $urpm->parse_synthesis($file, [ callback => sub {...} ])
+=item $urpm->parse_synthesis($file [, callback => sub {...} ])
This method gets the B<depslist> and the B<provides> from a synthesis file
and adds them to the URPM object.