public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] how to determine if a virtual is installed, from the shell?
@ 2003-08-19  2:31 Owen Gunden
  2003-08-19  2:43 ` Spider
  0 siblings, 1 reply; 4+ messages in thread
From: Owen Gunden @ 2003-08-19  2:31 UTC (permalink / raw
  To: gentoo-dev

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?

TIA,
Owen

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-19  6:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-19  2:31 [gentoo-dev] how to determine if a virtual is installed, from the shell? Owen Gunden
2003-08-19  2:43 ` Spider
2003-08-19  2:49   ` Owen Gunden
2003-08-19  6:25   ` Mamoru KOMACHI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox