summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-01-17 00:43:04 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-12-10 14:11:10 +0100
commit6f710c926c8252eb9bc84dafd6675370d0e3efae (patch)
treed69ab986134af2d5a9052580582f2d6375edbab9
parent92275cd805ae69ec053d72676bf2dfd87e4ca8b2 (diff)
downloadurpmi-6f710c926c8252eb9bc84dafd6675370d0e3efae.tar
urpmi-6f710c926c8252eb9bc84dafd6675370d0e3efae.tar.gz
urpmi-6f710c926c8252eb9bc84dafd6675370d0e3efae.tar.bz2
urpmi-6f710c926c8252eb9bc84dafd6675370d0e3efae.tar.xz
urpmi-6f710c926c8252eb9bc84dafd6675370d0e3efae.zip
Simplify: those are from the same scope
-rw-r--r--urpm/download.pm6
1 files 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) {