From c919aaad8ee54e748b2a642d045cd98e9e6c9c35 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 23 Sep 2008 07:30:23 +0000 Subject: use _download_media_info_file() in get_synthesis__remote() --- urpm/media.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'urpm') diff --git a/urpm/media.pm b/urpm/media.pm index 3f90478c..2c3e102a 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1273,10 +1273,9 @@ sub get_synthesis__remote { my ($urpm, $medium, $is_a_probe, $options) = @_; my $ok = try__maybe_mirrorlist($urpm, $medium, $is_a_probe, sub { - urpm::download::sync_rel_to($urpm, $medium, _url_with_synthesis_rel($medium), - cachedir_with_synthesis($urpm, $medium), - quiet => $options->{quiet}, callback => $options->{callback}) && - _check_synthesis(cachedir_with_synthesis($urpm, $medium)); + _download_media_info_file($urpm, $medium, 'synthesis.hdlist', '.cz', + $options->{quiet}, undef, $options->{callback}) + && _check_synthesis(cachedir_with_synthesis($urpm, $medium)); }); if (!$ok) { chomp(my $err = $@); -- cgit v1.2.1