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:
parent
3ec96e7a64
commit
94d81832dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user