summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-23 07:30:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-23 07:30:23 +0000
commitc919aaad8ee54e748b2a642d045cd98e9e6c9c35 (patch)
treef7b1bd3039c68cf631206721b07fa78f2f16c516
parent367f0ff1ed2653ad0bfb62ba9156aea78eb24803 (diff)
downloadurpmi-c919aaad8ee54e748b2a642d045cd98e9e6c9c35.tar
urpmi-c919aaad8ee54e748b2a642d045cd98e9e6c9c35.tar.gz
urpmi-c919aaad8ee54e748b2a642d045cd98e9e6c9c35.tar.bz2
urpmi-c919aaad8ee54e748b2a642d045cd98e9e6c9c35.tar.xz
urpmi-c919aaad8ee54e748b2a642d045cd98e9e6c9c35.zip
use _download_media_info_file() in get_synthesis__remote()
-rw-r--r--urpm/media.pm7
1 files changed, 3 insertions, 4 deletions
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 = $@);