From owner-cvs-ports@FreeBSD.ORG Tue Aug 17 17:29:48 2004 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBDBD16A4CE; Tue, 17 Aug 2004 17:29:48 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-50-15.dynamic.qsc.de [212.202.50.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B6E843D58; Tue, 17 Aug 2004 17:29:48 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from dhcp-10.local ([172.16.0.10] helo=dhcp-11.local) by fillmore.dyndns.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41 (FreeBSD)) id 1Bx7mL-000FGF-Ua; Tue, 17 Aug 2004 19:29:47 +0200 Date: Tue, 17 Aug 2004 19:31:34 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) To: Mikhail Teterin , Jacques Vidrine From: Oliver Eikemeier In-Reply-To: <200408171652.i7HGqJJk076434@repoman.freebsd.org> Message-Id: <490571A6-F073-11D8-924A-00039312D914@fillmore-labs.com> Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: cvs-ports@FreeBSD.org cc: cvs-all@FreeBSD.org cc: ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/security/vxquery Makefile ports/security/vxquery/files pkg_check.sh X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 17:29:49 -0000 Mikhail Teterin wrote: > [...] Use sh(1)'s `echo *' > instead of spawning off ls(1) in pkg_check.sh. FWIIW, I would suggest using pkg_info -Ia | awk '{print $1}' to get a list of all installed ports. The data in /var/db/pkg is private to the package tools, and while it is unlikely that the format will change soon (since some important tools would break) nobody guarantees that this works. At least portupgrade puts `pkgdb.db' in this directory, which is no package. OTOH you can continue to use that method, since it is fast and usually works, I just wanted to notify you that it is unsupported (and might break in the future). -Oliver