diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-05 09:57:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-05 09:57:09 +0000 |
commit | d1cf0dfe4b776191cf720677a7c775258be0b531 (patch) | |
tree | c89f56b364e8487d8bfbd3bd125d55a796085c4c | |
parent | f7ac67267e81f205020082d28b1cb3e4c971adf0 (diff) | |
download | urpmi-d1cf0dfe4b776191cf720677a7c775258be0b531.tar urpmi-d1cf0dfe4b776191cf720677a7c775258be0b531.tar.gz urpmi-d1cf0dfe4b776191cf720677a7c775258be0b531.tar.bz2 urpmi-d1cf0dfe4b776191cf720677a7c775258be0b531.tar.xz urpmi-d1cf0dfe4b776191cf720677a7c775258be0b531.zip |
simplify
-rw-r--r-- | urpm/download.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index ae561af3..180a098b 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -851,7 +851,7 @@ sub _sync_webfetch_raw { my $preferred = $available[0]; my $requested_downloader = requested_ftp_http_downloader($urpm, $medium); if ($requested_downloader) { - if (grep { $_ eq $requested_downloader } @available) { + if (member($requested_downloader, @available)) { #- use user default downloader if provided and available $preferred = $requested_downloader; } elsif (!our $webfetch_not_available) { |