From 6baa3fd970daa8d2eb993ca8d48ebb5d0db619d6 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 19 Aug 2005 14:30:40 +0000 Subject: Fix bug 17460 : MD5 for hdlists weren't checked with http media --- urpm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urpm.pm b/urpm.pm index c8f7a9b4..7d8dcfa4 100644 --- a/urpm.pm +++ b/urpm.pm @@ -1201,7 +1201,7 @@ this could happen if you mounted manually the directory when creating the medium } } if ($medium->{md5sum}) { - parse_md5sum($urpm, reduce_pathname("$with_hdlist_dir/../MD5SUM"), $basename); + $retrieved_md5sum = parse_md5sum($urpm, reduce_pathname("$with_hdlist_dir/../MD5SUM"), $basename); #- If an existing hdlist or synthesis file has the same md5sum, we assume #- the files are the same. #- If the local md5sum is the same as the distant md5sum, this means @@ -1475,7 +1475,7 @@ this could happen if you mounted manually the directory when creating the medium } } if ($medium->{md5sum}) { - parse_md5sum($urpm, "$urpm->{cachedir}/partial/MD5SUM", $basename); + $retrieved_md5sum = parse_md5sum($urpm, "$urpm->{cachedir}/partial/MD5SUM", $basename); #- if an existing hdlist or synthesis file has the same md5sum, we assume the #- files are the same. #- if local md5sum is the same as distant md5sum, this means there is no need to -- cgit v1.2.1