From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KZ9dx-0002iO-Hs for garchives@archives.gentoo.org; Fri, 29 Aug 2008 19:28:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3BA4CE01FF; Fri, 29 Aug 2008 19:28:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 185D7E01FF for ; Fri, 29 Aug 2008 19:28:25 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 364D564E4B for ; Fri, 29 Aug 2008 19:28:24 +0000 (UTC) Received: from hawking by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1KZ9dh-0005FO-Bi for gentoo-commits@lists.gentoo.org; Fri, 29 Aug 2008 19:28:13 +0000 From: "Ali Polatel (hawking)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, hawking@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: python.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: python.eclass X-VCS-Directories: eclass X-VCS-Committer: hawking X-VCS-Committer-Name: Ali Polatel Content-Type: text/plain; charset=utf8 Message-Id: Sender: Ali Polatel Date: Fri, 29 Aug 2008 19:28:09 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 3ca6d1c9-2df7-4ca7-bebe-3fa19985334a X-Archives-Hash: c8643426358fc33a68bb53290f373c0a hawking 08/08/29 19:28:09 Modified: python.eclass Log: Make python_version return if PYVER is already set. Revision Changes Path 1.44 eclass/python.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.ecla= ss?rev=3D1.44&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.ecla= ss?rev=3D1.44&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.ecla= ss?r1=3D1.43&r2=3D1.44 Index: python.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/python.eclass,v retrieving revision 1.43 retrieving revision 1.44 diff -u -r1.43 -r1.44 --- python.eclass 1 Aug 2008 22:22:21 -0000 1.43 +++ python.eclass 29 Aug 2008 19:28:08 -0000 1.44 @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.43 2008/08/0= 1 22:22:21 pythonhead Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.44 2008/08/2= 9 19:28:08 hawking Exp $ =20 # @ECLASS: python.eclass # @MAINTAINER: @@ -73,6 +73,7 @@ } =20 python_version() { + [[ -n "${PYVER}" ]] && return 0 local tmpstr python=3D${python:-/usr/bin/python} tmpstr=3D"$(${python} -V 2>&1 )"