summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-05 17:19:49 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-05 17:19:49 +0000
commitaeca1fd976249e33032cd1c8bdad49c651118417 (patch)
tree328eb3160e60d824b2fb87b37b1d848730d9c6da /urpm.pm
parent8211d4dda395d02ebdab2222680c2d22a3557f92 (diff)
downloadurpmi-aeca1fd976249e33032cd1c8bdad49c651118417.tar
urpmi-aeca1fd976249e33032cd1c8bdad49c651118417.tar.gz
urpmi-aeca1fd976249e33032cd1c8bdad49c651118417.tar.bz2
urpmi-aeca1fd976249e33032cd1c8bdad49c651118417.tar.xz
urpmi-aeca1fd976249e33032cd1c8bdad49c651118417.zip
explain why copy of hdlist failed, since two different problems may occur
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index c09183b3..714c9f2b 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1443,13 +1443,13 @@ this could happen if you mounted manually the directory when creating the medium
}
-s "$urpm->{cachedir}/partial/$medium->{hdlist}" > 32 or
- $error = 1, $urpm->{error}(N("copy of [%s] failed", $with_hdlist_dir));
+ $error = 1, $urpm->{error}(N("copy of [%s] failed (file is suspectingly small)", $with_hdlist_dir));
#- keep checking md5sum of file just copied ! (especially on nfs or removable device).
if (!$error && $retrieved_md5sum) {
$urpm->{log}(N("computing md5sum of copied source hdlist (or synthesis)"));
(split ' ', `md5sum '$urpm->{cachedir}/partial/$medium->{hdlist}'`)[0] eq $retrieved_md5sum or
- $error = 1, $urpm->{error}(N("copy of [%s] failed", $with_hdlist_dir));
+ $error = 1, $urpm->{error}(N("copy of [%s] failed (md5sum mismatch)", $with_hdlist_dir));
}
#- check if the file are equals... and no force copy...