diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-22 15:26:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-22 15:26:22 +0000 |
commit | 3e7176907d5474236b901b005970f1d346de81e3 (patch) | |
tree | d30b08db814fc7d08f792e19eebf309a9b5a5cf9 | |
parent | 8afb76dd633ff6e057cc253c6bb47606fcc905eb (diff) | |
download | urpmi-3e7176907d5474236b901b005970f1d346de81e3.tar urpmi-3e7176907d5474236b901b005970f1d346de81e3.tar.gz urpmi-3e7176907d5474236b901b005970f1d346de81e3.tar.bz2 urpmi-3e7176907d5474236b901b005970f1d346de81e3.tar.xz urpmi-3e7176907d5474236b901b005970f1d346de81e3.zip |
change parameter passing mode of get_synthesis__remote()
-rw-r--r-- | urpm/media.pm | 6 |
1 files 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}; |