diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-08-02 12:19:32 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-08-02 12:19:32 +0000 |
commit | 81c40cebd271f13e6b74b9a6e0652319f39181cb (patch) | |
tree | 10e1337d27b89deea65ae5fd195a49bd11cab076 | |
parent | 25e4dc4eab1fdb47bb6d1eac36a44904b0e4ff53 (diff) | |
download | FreeBSD-src-81c40cebd271f13e6b74b9a6e0652319f39181cb.zip FreeBSD-src-81c40cebd271f13e6b74b9a6e0652319f39181cb.tar.gz |
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
-rw-r--r-- | usr.sbin/pkg_install/lib/plist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c index 5beacd2..40438d8 100644 --- a/usr.sbin/pkg_install/lib/plist.c +++ b/usr.sbin/pkg_install/lib/plist.c @@ -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; |