From 23052247a36cf831133504fdf0819fa054ce9912 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 22 Sep 2008 15:26:57 +0000 Subject: move check_synthesis_md5sum() inside get_synthesis__remote() --- urpm/media.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/media.pm b/urpm/media.pm index 7309e9d1..f88774ba 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1281,6 +1281,9 @@ sub get_synthesis__remote { chomp(my $err = $@); $urpm->{error}(N("...retrieving failed: %s", $err)); } + + $ok &&= check_synthesis_md5sum($urpm, $medium) if !$options->{force} && !$options->{nomd5sum}; + $ok; } @@ -1470,8 +1473,6 @@ sub _update_medium__parse_if_unmodified__remote { } my $ok = get_synthesis__remote($urpm, $medium, !$updating, $options); - $ok &&= check_synthesis_md5sum($urpm, $medium) if !$options->{force} && !$options->{nomd5sum}; - $options->{callback} and $options->{callback}('done', $medium->{name}); if (!$ok) { -- cgit v1.2.1