summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-22 15:26:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-22 15:26:57 +0000
commit23052247a36cf831133504fdf0819fa054ce9912 (patch)
tree82fdb5dae3e90347e219c068c4259943406dcb77
parent3e7176907d5474236b901b005970f1d346de81e3 (diff)
downloadurpmi-23052247a36cf831133504fdf0819fa054ce9912.tar
urpmi-23052247a36cf831133504fdf0819fa054ce9912.tar.gz
urpmi-23052247a36cf831133504fdf0819fa054ce9912.tar.bz2
urpmi-23052247a36cf831133504fdf0819fa054ce9912.tar.xz
urpmi-23052247a36cf831133504fdf0819fa054ce9912.zip
move check_synthesis_md5sum() inside get_synthesis__remote()
-rw-r--r--urpm/media.pm5
1 files changed, 3 insertions, 2 deletions
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) {