From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JAfQa-0007Y8-BN for garchives@archives.gentoo.org; Fri, 04 Jan 2008 05:49:08 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id m045mIYT004544; Fri, 4 Jan 2008 05:48:18 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id m045kNGY002229 for ; Fri, 4 Jan 2008 05:46:24 GMT Received: from gentoo.org (c-67-171-150-177.hsd1.or.comcast.net [67.171.150.177]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 88E94657C9 for ; Fri, 4 Jan 2008 05:46:23 +0000 (UTC) Date: Thu, 3 Jan 2008 21:46:22 -0800 From: Donnie Berkholz To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] EAPI checking in eclasses Message-ID: <20080104054622.GC14600@supernova> References: <49728.192.168.2.159.1199111645.squirrel@www.aei-tech.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49728.192.168.2.159.1199111645.squirrel@www.aei-tech.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 96d10abc-8481-4e54-b65e-195fec8894eb X-Archives-Hash: fbef96b7dad69a98e5af99c588969f5e On 09:34 Mon 31 Dec , Caleb Tennis wrote: > Is it legal for an eclass to check the EAPI version (presumably by > using the EAPI variable) and perform some dependent behavior based on > what it sees? I don't see any eclasses using EAPI for anything, so > I'm curious. You can't treat EAPI as an integer, though, which the commit to the qt eclass did. You might want to do a case statement instead for string matches. Thanks, Donnie -- gentoo-dev@gentoo.org mailing list