From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EAF441384B4 for ; Tue, 1 Dec 2015 13:56:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3BC5B21C084; Tue, 1 Dec 2015 13:56:38 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41B6121C007 for ; Tue, 1 Dec 2015 13:56:37 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a3lNy-0000FX-6K for gentoo-dev@lists.gentoo.org; Tue, 01 Dec 2015 14:54:26 +0100 Received: from ip98-167-165-199.ph.ph.cox.net ([98.167.165.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Dec 2015 14:54:26 +0100 Received: from 1i5t5.duncan by ip98-167-165-199.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Dec 2015 14:54:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-dev] Re: [PATCH] eutils.eclass: In EAPI conditionals, replace "has" by case statements. Date: Tue, 1 Dec 2015 13:50:29 +0000 (UTC) Message-ID: References: <22106.64938.215501.17191@a1i15.kph.uni-mainz.de> <22107.11375.846871.672757@a1i15.kph.uni-mainz.de> <22107.62027.57796.708914@a1i15.kph.uni-mainz.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip98-167-165-199.ph.ph.cox.net User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT c9c83f3) X-Archives-Salt: dfb88d53-331d-41df-a1ee-b1a894f96878 X-Archives-Hash: e60cb724712ed06067750755bcf43f46 Ulrich Mueller posted on Mon, 30 Nov 2015 07:52:59 +0100 as excerpted: > It is slightly more complicated to match multiple patterns with [[ ]] > because it requires multiple conditions, regexps, or extglob. We could of > course use a bracket expression like [[ ${EAPI:-0} = [012345] ]] but I > find it ugly in this context (and it won't be able to check for EAPI > 10 ;) > ). Of course we could switch to abc... after ...789, instead of switching to double-digits. And then to ABC... which should cover us for a few years... If gentoo's still around and still using compatible EAPIs after Z... that's a problem we'll be lucky to have! =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman