From 6f710c926c8252eb9bc84dafd6675370d0e3efae Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 17 Jan 2022 00:43:04 +0100 Subject: Simplify: those are from the same scope --- urpm/download.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/urpm/download.pm b/urpm/download.pm index 8ee2ba12..790ccf91 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -75,8 +75,8 @@ my %warned; sub preferred_downloader { my ($urpm, $medium, $use_metalink) = @_; - my @available = urpm::download::available_ftp_http_downloaders(); - my @metalink_downloaders = urpm::download::available_metalink_downloaders(); + my @available = available_ftp_http_downloaders(); + my @metalink_downloaders = available_metalink_downloaders(); my $metalink_disabled = !$$use_metalink && $medium->{disable_metalink}; if ($$use_metalink && !$metalink_disabled) { @@ -1041,7 +1041,7 @@ sub _sync_webfetch_raw { if ($preferred eq 'aria2') { sync_aria2($urpm, $medium, $rel_files, $options); } else { - my $sync = $urpm::download::{"sync_$preferred"} or die N("no webfetch found, supported webfetch are: %s\n", join(", ", urpm::download::ftp_http_downloaders())); + my $sync = $urpm::download::{"sync_$preferred"} or die N("no webfetch found, supported webfetch are: %s\n", join(", ", ftp_http_downloaders())); my @l = @$files; while (@l) { -- cgit v1.2.1