Gentoo Archives: gentoo-dev

From: Owen Gunden <ogunden@××××××××××××.edu>
To: gentoo-dev@g.o
Subject: [gentoo-dev] how to determine if a virtual is installed, from the shell?
Date: Tue, 19 Aug 2003 02:31:50
1 So hypothetically, if I wanted to write a shell script that behaved
2 differently if virtual/mta was installed than if it was not, what would I
3 do?
5 I'd like a command that would return a specific exit status based on
6 whether or not the virtual dependency is there. But frankly I'm willing to
7 use grep for a nice gross hack too. Tell the truth, I don't even know how
8 to do this for regular (non-virtual) packages.
10 I've played around with qpkg, but with little luck. Is there any way to do
11 this with or without qpkg?
13 TIA,
14 Owen
16 --
17 gentoo-dev@g.o mailing list