Subject: pkg_info -Q on binary packages
To: None <tech-pkg@NetBSD.org>
From: Dieter Baron <dillo@danbala.tuwien.ac.at>
List: tech-pkg
Date: 06/30/2006 11:31:54
hi,

Roland noticed that pkg_info -Q on binary packages does not work,
since +BUILD_INFO is not extracted.

  The fix is simple.  Is it okay to commit this (together with a
version bump) during the freeze?

Index: info/perform.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/pkg_install/info/perform.c,v
retrieving revision 1.69
diff -u -r1.69 perform.c
--- perform.c	24 Apr 2006 13:36:22 -0000	1.69
+++ perform.c	30 Jun 2006 09:23:31 -0000
@@ -135,7 +135,7 @@
 					LFILE_ADD(&files, lfp, MTREE_FNAME);
 				if (Flags & SHOW_BUILD_VERSION)
 					LFILE_ADD(&files, lfp, BUILD_VERSION_FNAME);
-				if (Flags & (SHOW_BUILD_INFO|SHOW_SUMMARY))
+				if (Flags & (SHOW_BUILD_INFO|SHOW_SUMMARY|SHOW_BI_VAR))
 					LFILE_ADD(&files, lfp, BUILD_INFO_FNAME);
 				if (Flags & (SHOW_PKG_SIZE|SHOW_SUMMARY))
 					LFILE_ADD(&files, lfp, SIZE_PKG_FNAME);


					yours,
					dillo