From 0f4f39875380f69bcd1ecab9ba68b3c0d56cc05a Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 6 Feb 2004 17:40:17 +0000 Subject: fix english prefered->preferred --- urpm.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 714c9f2b..efaeeadc 100644 --- a/urpm.pm +++ b/urpm.pm @@ -136,16 +136,16 @@ sub sync_webfetch { if ($files{ftp} || $files{http} || $files{https}) { my @webfetch = qw(curl wget); my @available_webfetch = grep { -x "/usr/bin/$_" } @webfetch; - my $prefered; + my $preferred; #- use user default downloader if provided and available if ($urpm->{options}{downloader}) { - $prefered = find { $_ eq $urpm->{options}{downloader} } @available_webfetch; + $preferred = find { $_ eq $urpm->{options}{downloader} } @available_webfetch; } #- else first downloader of @webfetch is the default one - $prefered ||= $available_webfetch[0]; - if ($prefered eq 'curl') { + $preferred ||= $available_webfetch[0]; + if ($preferred eq 'curl') { sync_curl($options, @{$files{ftp} || []}, @{$files{http} || []}, @{$files{https} || []}); - } elsif ($prefered eq 'wget') { + } elsif ($preferred eq 'wget') { sync_wget($options, @{$files{ftp} || []}, @{$files{http} || []}, @{$files{https} || []}); } else { die N("no webfetch found, supported webfetch are: %s\n", join(", ", @webfetch)); -- cgit v1.2.1