Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2004 19:31:34 +0200
From:      Oliver Eikemeier <eikemeier@fillmore-labs.com>
To:        Mikhail Teterin <mi@FreeBSD.org>, Jacques Vidrine <nectar@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/security/vxquery Makefile ports/security/vxquery/files pkg_check.sh
Message-ID:  <490571A6-F073-11D8-924A-00039312D914@fillmore-labs.com>
In-Reply-To: <200408171652.i7HGqJJk076434@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?490571A6-F073-11D8-924A-00039312D914>