From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16518 invoked by uid 1002); 19 Aug 2003 02:43:30 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 2450 invoked from network); 19 Aug 2003 02:43:30 -0000 Date: Tue, 19 Aug 2003 04:43:50 +0200 From: Spider To: gentoo-dev@gentoo.org Message-Id: <20030819044350.07c7c89e.spider@gentoo.org> In-Reply-To: <20030819023147.GA24048@force.stwing.upenn.edu> References: <20030819023147.GA24048@force.stwing.upenn.edu> Organization: Gentoo X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="bxQ=.vRj(rQ5JaX." Subject: Re: [gentoo-dev] how to determine if a virtual is installed, from the shell? X-Archives-Salt: c3c38f91-ea26-406b-bb71-b3c55ec76ea8 X-Archives-Hash: c95d640f46ebdc86e19f580267840be7 --bxQ=.vRj(rQ5JaX. Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit begin quote On Mon, 18 Aug 2003 22:31:47 -0400 Owen Gunden wrote: > So hypothetically, if I wanted to write a shell script that behaved > differently if virtual/mta was installed than if it was not, what > would I do? > > I'd like a command that would return a specific exit status based on > whether or not the virtual dependency is there. But frankly I'm > willing to use grep for a nice gross hack too. Tell the truth, I > don't even know how to do this for regular (non-virtual) packages. > > I've played around with qpkg, but with little luck. Is there any way > to do this with or without qpkg? > cat /var/cache/edb/virtuals ... this should give you the format enough to work shell magic with it :) //Spider -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end --bxQ=.vRj(rQ5JaX. Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/QY7oZS9CZTi033kRAlJWAJ46XbcTK1Fl779zYL762GkJ41fkFgCgnilN xq0p2dXICdWJqJChEfTrsjc= =97DA -----END PGP SIGNATURE----- --bxQ=.vRj(rQ5JaX.--