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 627281384B4 for ; Mon, 7 Dec 2015 05:38:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42C3821C0BA; Mon, 7 Dec 2015 05:37:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53E2A21C01A for ; Mon, 7 Dec 2015 05:37:57 +0000 (UTC) Received: from localhost (unknown [IPv6:2404:e800:e600:38b:5cd4:584d:8575:cd49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: perfinion) by smtp.gentoo.org (Postfix) with ESMTPSA id D1A18340545 for ; Mon, 7 Dec 2015 05:37:55 +0000 (UTC) Date: Mon, 7 Dec 2015 13:37:50 +0800 From: Jason Zaman To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?) Message-ID: <20151207053750.GA23517@meriadoc> References: <22106.6463.805834.391338@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=us-ascii Content-Disposition: inline In-Reply-To: <22106.6463.805834.391338@a1i15.kph.uni-mainz.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-Archives-Salt: bfb31eef-b31f-4262-9948-edabffd455f3 X-Archives-Hash: 99a71072b3bb0887e6118cc25c4d4d8d On Sat, Nov 28, 2015 at 10:14:39PM +0100, Ulrich Mueller wrote: > Questions: > 1. Will these three functions be sufficient, or have we overlooked > anything important? Can we also have get_version_component_count() in there? I have a package that likes to change the number of parts so I need to know how many parts before I can split it up. Basically this: if [[ $(get_version_component_count) -eq 6 ]]; then STUDIO_V=$(get_version_component_range 1-4) BUILD_V=$(get_version_component_range 5-6) else STUDIO_V=$(get_version_component_range 1-3) BUILD_V=$(get_version_component_range 4-5) fi -- Jason