From 3e7176907d5474236b901b005970f1d346de81e3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 22 Sep 2008 15:26:22 +0000 Subject: change parameter passing mode of get_synthesis__remote() --- urpm/media.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/urpm/media.pm b/urpm/media.pm index a22f9093..7309e9d1 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1270,11 +1270,11 @@ sub get_synthesis__local { } } sub get_synthesis__remote { - my ($urpm, $medium, $callback, $quiet, $is_a_probe) = @_; + my ($urpm, $medium, $is_a_probe, $options) = @_; my $ok = try__maybe_mirrorlist($urpm, $medium, $is_a_probe, sub { urpm::download::sync_rel($urpm, $medium, [ _url_with_synthesis_rel($medium) ], - quiet => $quiet, callback => $callback) && + quiet => $options->{quiet}, callback => $options->{callback}) && _check_synthesis(cachedir_with_synthesis($urpm, $medium)); }); if (!$ok) { @@ -1468,7 +1468,7 @@ sub _update_medium__parse_if_unmodified__remote { ) or $error->(N("...copying failed")), return; } } - my $ok = get_synthesis__remote($urpm, $medium, $options->{callback}, $options->{quiet}, !$updating); + my $ok = get_synthesis__remote($urpm, $medium, !$updating, $options); $ok &&= check_synthesis_md5sum($urpm, $medium) if !$options->{force} && !$options->{nomd5sum}; -- cgit v1.2.1