Gentoo Archives: gentoo-commits

From: "Ali Polatel (hawking)" <hawking@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: python.eclass
Date: Fri, 29 Aug 2008 19:28:25
Message-Id: E1KZ9dh-0005FO-Bi@stork.gentoo.org
1 hawking 08/08/29 19:28:09
2
3 Modified: python.eclass
4 Log:
5 Make python_version return if PYVER is already set.
6
7 Revision Changes Path
8 1.44 eclass/python.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?rev=1.44&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?rev=1.44&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?r1=1.43&r2=1.44
13
14 Index: python.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/python.eclass,v
17 retrieving revision 1.43
18 retrieving revision 1.44
19 diff -u -r1.43 -r1.44
20 --- python.eclass 1 Aug 2008 22:22:21 -0000 1.43
21 +++ python.eclass 29 Aug 2008 19:28:08 -0000 1.44
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.43 2008/08/01 22:22:21 pythonhead Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.44 2008/08/29 19:28:08 hawking Exp $
27
28 # @ECLASS: python.eclass
29 # @MAINTAINER:
30 @@ -73,6 +73,7 @@
31 }
32
33 python_version() {
34 + [[ -n "${PYVER}" ]] && return 0
35 local tmpstr
36 python=${python:-/usr/bin/python}
37 tmpstr="$(${python} -V 2>&1 )"