diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 11:08:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 11:08:10 +0000 |
commit | 54df8bebc17e3148e16387ad8c4f3ce0d2a0ebd2 (patch) | |
tree | 1424ce5b7a72ebf796d893adac04684b69e224b4 | |
parent | a6e151d1eb76c5dbc198aa0b88b8e9483b8b6e08 (diff) | |
download | urpmi-54df8bebc17e3148e16387ad8c4f3ce0d2a0ebd2.tar urpmi-54df8bebc17e3148e16387ad8c4f3ce0d2a0ebd2.tar.gz urpmi-54df8bebc17e3148e16387ad8c4f3ce0d2a0ebd2.tar.bz2 urpmi-54df8bebc17e3148e16387ad8c4f3ce0d2a0ebd2.tar.xz urpmi-54df8bebc17e3148e16387ad8c4f3ce0d2a0ebd2.zip |
rename recompute_local_md5sum() to local_md5sum()
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1430,7 +1430,7 @@ this could happen if you mounted manually the directory when creating the medium unless ($medium->{virtual}) { if ($medium->{with_hdlist}) { if (!$options->{nomd5sum} && file_size(_hdlist_dir($medium) . '/MD5SUM') > 32) { - if (recompute_local_md5sum($urpm, $medium, $options->{force})) { + if (local_md5sum($urpm, $medium, $options->{force})) { $retrieved_md5sum = parse_md5sum($urpm, _hdlist_dir($medium) . '/MD5SUM', basename($medium->{with_hdlist})); _read_existing_synthesis_and_hdlist_if_same_md5sum($urpm, $medium, $retrieved_md5sum) and return 'unmodified'; @@ -1553,7 +1553,7 @@ sub _update_medium__parse_if_unmodified__or_get_files__remote { sync_webfetch($urpm, $medium, [ reduce_pathname(_hdlist_dir($medium) . '/MD5SUM') ], quiet => 1) && file_size("$urpm->{cachedir}/partial/MD5SUM") > 32) { - if (recompute_local_md5sum($urpm, $medium, $options->{force} >= 2)) { + if (local_md5sum($urpm, $medium, $options->{force} >= 2)) { $retrieved_md5sum = parse_md5sum($urpm, "$urpm->{cachedir}/partial/MD5SUM", $basename); _read_existing_synthesis_and_hdlist_if_same_md5sum($urpm, $medium, $retrieved_md5sum) and return 'unmodified'; @@ -3293,7 +3293,7 @@ sub parse_md5sum { return $retrieved_md5sum; } -sub recompute_local_md5sum { +sub local_md5sum { my ($urpm, $medium, $force) = @_; if ($force) { #- force downloading the file again, else why a force option has been defined ? |