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 | a7635f27f4311614d5e539b6c425cb041925e2bc (patch) | |
tree | 15364b1ca8e06c1937ef835aecfe59fb30855a82 | |
parent | Version bump. (diff) | |
download | gentoo-2-a7635f27f4311614d5e539b6c425cb041925e2bc.tar.gz gentoo-2-a7635f27f4311614d5e539b6c425cb041925e2bc.tar.bz2 gentoo-2-a7635f27f4311614d5e539b6c425cb041925e2bc.zip |
Make python_version return if PYVER is already set.
-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 )" |