diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 16:38:01 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-09 16:38:01 +0000 |
commit | 21156ff4072ee12403c1f14fadadcf6b8ab3354e (patch) | |
tree | 5ce2f1132a3977aee5012ba20cd142d4caf3872a /urpm.pm | |
parent | e53a4ff3a5d5a883cfa4543d059a722719b4106b (diff) | |
download | urpmi-21156ff4072ee12403c1f14fadadcf6b8ab3354e.tar urpmi-21156ff4072ee12403c1f14fadadcf6b8ab3354e.tar.gz urpmi-21156ff4072ee12403c1f14fadadcf6b8ab3354e.tar.bz2 urpmi-21156ff4072ee12403c1f14fadadcf6b8ab3354e.tar.xz urpmi-21156ff4072ee12403c1f14fadadcf6b8ab3354e.zip |
fix previous commit: get_md5sum() is a better name than get_computed_md5sum()
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |