From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=DATE_IN_PAST_12_24,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from mailgw2.netvision.net.il ([194.90.1.9]) by cvs.gentoo.org with esmtp (Exim 3.30 #1) id 15MsQi-0002KA-00 for gentoo-dev@cvs.gentoo.org; Wed, 18 Jul 2001 08:36:01 -0600 Received: from localhost (ras1-p36.rlz.netvision.net.il [62.0.84.36]) by mailgw2.netvision.net.il (8.9.3/8.9.3) with SMTP id RAA13593 for ; Wed, 18 Jul 2001 17:38:39 +0300 (IDT) Content-Type: text/plain; charset="iso-8859-1" From: Dan Armak To: gentoo-dev@cvs.gentoo.org Subject: Re: [gentoo-dev] Checking availability of a package from an ebuild X-Mailer: KMail [version 1.2] References: <01071810304200.00605@localhost> <20010718090304.A3607@minime.sistina.com> In-Reply-To: <20010718090304.A3607@minime.sistina.com> Organization: Gentoo Technologies, Inc. MIME-Version: 1.0 Message-Id: <01071817372105.00590@localhost> Content-Transfer-Encoding: 8bit Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Wed Jul 18 08:37:01 2001 X-Original-Date: Wed, 18 Jul 2001 17:37:21 +0300 X-Archives-Salt: be2323e3-9c99-434b-843a-5c97a32cbbbd X-Archives-Hash: 35d780060f0b982a1c7ebe568209a43e On Wednesday 18 July 2001 17:03, you wrote: > On Wed, Jul 18, 2001 at 10:30:42AM +0300, Dan Armak wrote: > >Hi all, > > > >This may be trivial, but I can't find out how to do it. How can I check > > from within an ebuild whether or not a package is installed? For example > > whether virtual/x11 is available. (Even if it's not in USE). > > emerge --pretend No I mean when _writing_ an ebuild, I want it to do different things based on whether some packages are installed. -- Dan Armak Gentoo Linux Developer Matan, Israel