diff options
Diffstat (limited to 'URPM.pm')
-rw-r--r-- | URPM.pm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -75,14 +75,14 @@ sub search { return $best; } -# Olivier Thauvin: -# Return @$listid, $start .. $end or the whole deplist id -# according given args +#- Olivier Thauvin: +#- Returns @$listid, $start .. $end or the whole deplist id +#- according to the given args sub build_listid { my ($urpm, $start, $end, $listid) = @_; @{$listid || []} > 0 ? @{$listid} : - ((defined($start) ? $start : 0) .. (defined($end) ? $end : $#{$urpm->{depslist}})); + (($start || 0) .. (defined($end) ? $end : $#{$urpm->{depslist}})); } sub traverse { |