Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/lib in delete_package(), always warn if...
details: https://anonhg.NetBSD.org/src/rev/c76ef58c5727
branches: trunk
changeset: 545692:c76ef58c5727
user: grant <grant%NetBSD.org@localhost>
date: Mon Apr 14 23:42:21 2003 +0000
description:
in delete_package(), always warn if there is a checksum mismatch,
improve text.
diffstat:
usr.sbin/pkg_install/lib/plist.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (30 lines):
diff -r 4b6a5b29acbd -r c76ef58c5727 usr.sbin/pkg_install/lib/plist.c
--- a/usr.sbin/pkg_install/lib/plist.c Mon Apr 14 18:50:52 2003 +0000
+++ b/usr.sbin/pkg_install/lib/plist.c Mon Apr 14 23:42:21 2003 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: plist.c,v 1.37 2003/01/05 21:49:59 agc Exp $ */
+/* $NetBSD: plist.c,v 1.38 2003/04/14 23:42:21 grant Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp";
#else
-__RCSID("$NetBSD: plist.c,v 1.37 2003/01/05 21:49:59 agc Exp $");
+__RCSID("$NetBSD: plist.c,v 1.38 2003/04/14 23:42:21 grant Exp $");
#endif
#endif
@@ -377,10 +377,8 @@
if ((cp = MD5File(tmp, buf)) != NULL) {
/* Mismatch? */
if (strcmp(cp, p->next->name + ChecksumHeaderLen) != 0) {
- if (Verbose) {
- printf("%s fails original MD5 checksum - %s\n",
- tmp, Force ? "deleted anyway." : "not deleted.");
- }
+ printf("original MD5 checksum failed, %s: %s\n",
+ Force ? "deleting anyway" : "not deleting", tmp);
if (!Force) {
fail = FAIL;
continue;
Home |
Main Index |
Thread Index |
Old Index