From aeca1fd976249e33032cd1c8bdad49c651118417 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 5 Feb 2004 17:19:49 +0000 Subject: explain why copy of hdlist failed, since two different problems may occur --- urpm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm.pm') 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... -- cgit v1.2.1