Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 09/13/2003 05:55:15
Module Name:	pkgsrc
Committed By:	jlam
Date:		Sat Sep 13 05:55:15 UTC 2003

Modified Files:
	pkgsrc/mk: bsd.pkg.mk bsd.prefs.mk

Log Message:
In cases where we need the best match for a pkgpattern, use
"${PKG_BEST_EXIST} pkgpattern" instead of "${PKG_INFO} -e pkgpattern".  The
latter can return multiple package names if there are multiple versions of
a piece of software installed.  PKG_BEST_EXIST is defined to be
"${PKG_ADMIN} -b -d ${_PKG_DBDIR} -s "" lsbest", so it searches for the
best installed package that matches the given pkgpattern or else returns
the empty string.

Bump PKGTOOLS_REQD to 20030912 since pkg_admin(1) needs to know about "-b"
and "-d <dir>".


To generate a diff of this commit:
cvs rdiff -r1.1274 -r1.1275 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r1.124 -r1.125 pkgsrc/mk/bsd.prefs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.