diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-15 11:28:52 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-15 11:28:52 +0000 |
commit | 3f4c71947f952b05f5b58f26c032d5a3ae769526 (patch) | |
tree | 85f03cfab9a3743297b5d5c641232ecaf813c71e /URPM.pm | |
parent | 3b75e23168713d7bd1726297d4fcf8f525547038 (diff) | |
download | perl-URPM-3f4c71947f952b05f5b58f26c032d5a3ae769526.tar perl-URPM-3f4c71947f952b05f5b58f26c032d5a3ae769526.tar.gz perl-URPM-3f4c71947f952b05f5b58f26c032d5a3ae769526.tar.bz2 perl-URPM-3f4c71947f952b05f5b58f26c032d5a3ae769526.tar.xz perl-URPM-3f4c71947f952b05f5b58f26c032d5a3ae769526.zip |
make the prototype of parse_synthesis more clear in the pod1.48
Diffstat (limited to 'URPM.pm')
-rw-r--r-- | URPM.pm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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. |