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/delete Make sure that the Fake mode wou...



details:   https://anonhg.NetBSD.org/src/rev/f5346ee57fc5
branches:  trunk
changeset: 558162:f5346ee57fc5
user:      reed <reed%NetBSD.org@localhost>
date:      Thu Jan 29 17:41:49 2004 +0000

description:
Make sure that the Fake mode would give a Verbose message about
the package to be deleted.  (Previously, the Fake mode only mentioned
deinstalling other dependent packages but didn't say anything
Verbose about the package itself.)

diffstat:

 usr.sbin/pkg_install/delete/perform.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 76d8d1f70933 -r f5346ee57fc5 usr.sbin/pkg_install/delete/perform.c
--- a/usr.sbin/pkg_install/delete/perform.c     Thu Jan 29 16:57:29 2004 +0000
+++ b/usr.sbin/pkg_install/delete/perform.c     Thu Jan 29 17:41:49 2004 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: perform.c,v 1.50 2003/10/21 02:48:07 fvdl Exp $        */
+/*     $NetBSD: perform.c,v 1.51 2004/01/29 17:41:49 reed Exp $        */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.50 2003/10/21 02:48:07 fvdl Exp $");
+__RCSID("$NetBSD: perform.c,v 1.51 2004/01/29 17:41:49 reed Exp $");
 #endif
 #endif
 
@@ -773,6 +773,9 @@
                "couldn't entirely delete package `%s'\n"
                "(perhaps the packing list is incorrectly specified?)", pkg);
        }
+       else {   /* Fake means Verbose */
+               printf("Attempting to delete package `%s'\n", pkg);
+       }
        if (!isemptyfile(DEPOT_FNAME)) {
                if (Verbose)
                        printf("Attempting to remove the %s registration on package `%s'\n", VIEWS_FNAME, pkg);



Home | Main Index | Thread Index | Old Index