diff options
author | Ali Polatel <hawking@gentoo.org> | 2008-08-29 19:28:08 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2008-08-29 19:28:08 +0000 |
commit | 2711edbdc7c36d90f142d7a14de9b85ffc110815 (patch) | |
tree | 7a05c508ebfda53bf61cdd6eb843ac648e9d5a2e /eclass/python.eclass | |
parent | Version bump. (diff) | |
download | historical-2711edbdc7c36d90f142d7a14de9b85ffc110815.tar.gz historical-2711edbdc7c36d90f142d7a14de9b85ffc110815.tar.bz2 historical-2711edbdc7c36d90f142d7a14de9b85ffc110815.zip |
Make python_version return if PYVER is already set.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r-- | eclass/python.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass index 00078598c6d6..cdf4d3bbf95b 100644 --- a/eclass/python.eclass +++ b/eclass/python.eclass @@ -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/01 22:22:21 pythonhead Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.44 2008/08/29 19:28:08 hawking Exp $ # @ECLASS: python.eclass # @MAINTAINER: @@ -73,6 +73,7 @@ __python_version_extract() { } python_version() { + [[ -n "${PYVER}" ]] && return 0 local tmpstr python=${python:-/usr/bin/python} tmpstr="$(${python} -V 2>&1 )" |