Gentoo Archives: gentoo-dev

From: Brian Harring <ferringb@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] PKG-INFO (Was: PMS EAPI 3 more or less ready)
Date: Thu, 23 Apr 2009 08:29:22
Message-Id: 20090423082911.GG7821@hrair
In Reply to: Re: [gentoo-dev] PKG-INFO (Was: PMS EAPI 3 more or less ready) by Ciaran McCreesh
1 On Wed, Apr 22, 2009 at 02:57:34PM +0100, Ciaran McCreesh wrote:
2 > On Wed, 22 Apr 2009 16:56:08 +0300
3 > Petteri Räty <betelgeuse@g.o> wrote:
4 > > Ok. So people should then be using has_version in pkg_info if they
5 > > want to detect if it's installed or not?
6 >
7 > If they absolutely totally need to detect that, then yes.
8
9 Presuming I read that correctly, invoking has_version w/in pkg x to
10 see if pkg x is installed seems like redundant code (and slightly
11 circuitious from a PM standpoint)- why not just export a bool into the
12 env for pkg_info indicating if it is installed or not?
13
14 ~harring

Replies

Subject Author
Re: [gentoo-dev] PKG-INFO (Was: PMS EAPI 3 more or less ready) Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>