From 3f4c71947f952b05f5b58f26c032d5a3ae769526 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 15 Nov 2006 11:28:52 +0000 Subject: make the prototype of parse_synthesis more clear in the pod --- URPM.pm | 8 ++++---- 1 file 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: $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 and the B from a synthesis file and adds them to the URPM object. -- cgit v1.2.1