Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] EAPI checking in eclasses
Date: Fri, 04 Jan 2008 05:49:08
Message-Id: 20080104054622.GC14600@supernova
In Reply to: [gentoo-dev] EAPI checking in eclasses by Caleb Tennis
1 On 09:34 Mon 31 Dec , Caleb Tennis wrote:
2 > Is it legal for an eclass to check the EAPI version (presumably by
3 > using the EAPI variable) and perform some dependent behavior based on
4 > what it sees? I don't see any eclasses using EAPI for anything, so
5 > I'm curious.
6
7 You can't treat EAPI as an integer, though, which the commit to the qt
8 eclass did. You might want to do a case statement instead for string
9 matches.
10
11 Thanks,
12 Donnie
13 --
14 gentoo-dev@g.o mailing list