When there is a file that can't be deleted due to checksum mismatch print name

of that file to stdout to simplify debugging. IMO it was a mistake to print
this warning only when `verbose' mode is on.

MFC after:	1 month
This commit is contained in:
Maxim Sobolev 2001-08-02 12:19:32 +00:00
parent 3ec96e7a64
commit 94d81832dd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81044

View File

@ -401,8 +401,7 @@ delete_package(Boolean ign_err, Boolean nukedirs, Package *pkg)
if ((cp = MD5File(tmp, buf)) != NULL) {
/* Mismatch? */
if (strcmp(cp, p->next->name + 4)) {
if (Verbose)
printf("%s fails original MD5 checksum - %s\n",
warnx("`%s' fails original MD5 checksum - %s",
tmp, Force ? "deleted anyway." : "not deleted.");
if (!Force) {
fail = FAIL;