From 21156ff4072ee12403c1f14fadadcf6b8ab3354e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 9 Nov 2006 16:38:01 +0000 Subject: fix previous commit: get_md5sum() is a better name than get_computed_md5sum() --- urpm.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index d37d2b70..959d801d 100644 --- a/urpm.pm +++ b/urpm.pm @@ -245,7 +245,7 @@ sub read_config { #- read MD5 sums (usually not in urpmi.cfg but in a separate file) foreach (@{$urpm->{media}}) { - if (my $md5sum = get_computed_md5sum("$urpm->{statedir}/MD5SUM", ($_->{synthesis} ? "synthesis." : "") . $_->{hdlist})) { + if (my $md5sum = get_md5sum("$urpm->{statedir}/MD5SUM", ($_->{synthesis} ? "synthesis." : "") . $_->{hdlist})) { $_->{md5sum} = $md5sum; } } @@ -3427,7 +3427,7 @@ sub get_updates_description { } #- parse an MD5SUM file from a mirror -sub get_computed_md5sum { +sub get_md5sum { my ($path, $basename) = @_; my ($retrieved_md5sum) = map { @@ -3441,7 +3441,7 @@ sub get_computed_md5sum { sub parse_md5sum { my ($urpm, $path, $basename) = @_; $urpm->{log}(N("examining MD5SUM file")); - my $retrieved_md5sum = get_computed_md5sum($path, $basename) + my $retrieved_md5sum = get_md5sum($path, $basename) or $urpm->{log}(N("warning: md5sum for %s unavailable in MD5SUM file", $basename)); return $retrieved_md5sum; } -- cgit v1.2.1