Gentoo Archives: gentoo-dev

From: Dan Armak <danarmak@g.o>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] Checking availability of a package from an ebuild
Date: Wed, 18 Jul 2001 08:36:01
Message-Id: 01071817372105.00590@localhost
In Reply to: Re: [gentoo-dev] Checking availability of a package from an ebuild by Ben Lutgens
1 On Wednesday 18 July 2001 17:03, you wrote:
2 > On Wed, Jul 18, 2001 at 10:30:42AM +0300, Dan Armak wrote:
3 > >Hi all,
4 > >
5 > >This may be trivial, but I can't find out how to do it. How can I check
6 > > from within an ebuild whether or not a package is installed? For example
7 > > whether virtual/x11 is available. (Even if it's not in USE).
8 >
9 > emerge --pretend
10
11 No I mean when _writing_ an ebuild, I want it to do different things based on
12 whether some packages are installed.
13 --
14
15 Dan Armak
16 Gentoo Linux Developer
17 Matan, Israel