Subject: pkg_info: display install-message (-D) by default?
To: None <tech-pkg@netbsd.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-pkg
Date: 01/06/2004 01:30:46
I've stubled across bochs not running out of the box because I forgot
(again) to set X font patchs. That information is available in the
post-install message that can be installed with "pkg_info -D", but that's
not displayed by a simple "pkg_info".

What do you people think about printing the post-install message also
when printing pkg information?

I.e. add SHOW_DISPLAY to this:

        /* Set some reasonable defaults */
        if (!Flags)
                Flags = SHOW_COMMENT | SHOW_DESC | SHOW_REQBY | SHOW_DEPENDS;

Comments?


 - Hubert


Index: main.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/pkg_install/info/main.c,v
retrieving revision 1.27.2.5
diff -u -r1.27.2.5 main.c
--- main.c	21 Sep 2003 10:32:46 -0000	1.27.2.5
+++ main.c	6 Jan 2004 00:26:50 -0000
@@ -205,7 +205,8 @@

 	/* Set some reasonable defaults */
 	if (!Flags)
-		Flags = SHOW_COMMENT | SHOW_DESC | SHOW_REQBY | SHOW_DEPENDS;
+		Flags = SHOW_COMMENT | SHOW_DESC | SHOW_REQBY
+			| SHOW_DEPENDS | SHOW_DISPLAY;

 	/* -Fe /filename -> change CheckPkg to real packagename */
 	if (CheckPkg && File2Pkg) {

-- 
Hubert Feyrer <hubert@feyrer.de>