diff options
author | Rob Cakebread <pythonhead@gentoo.org> | 2005-04-23 03:40:10 +0000 |
---|---|---|
committer | Rob Cakebread <pythonhead@gentoo.org> | 2005-04-23 03:40:10 +0000 |
commit | 6060dd286dc38c17cda29ac8a1d9ce76e19cd5c0 (patch) | |
tree | 5458ab5beb5fb33b12e834aefed39c56efba5ce8 /eclass | |
parent | - move the virtual/baselayout into the alphabetically correct slot (diff) | |
download | gentoo-2-6060dd286dc38c17cda29ac8a1d9ce76e19cd5c0.tar.gz gentoo-2-6060dd286dc38c17cda29ac8a1d9ce76e19cd5c0.tar.bz2 gentoo-2-6060dd286dc38c17cda29ac8a1d9ce76e19cd5c0.zip |
Fixed problem with bug# 90092
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python.eclass | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass index 453e9e1ab38d..75fb08fc6d53 100644 --- a/eclass/python.eclass +++ b/eclass/python.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.16 2005/04/20 15:43:37 liquidx Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.17 2005/04/23 03:40:10 pythonhead Exp $ # # Author: Alastair Tse <liquidx@gentoo.org> # @@ -50,11 +50,10 @@ python_version() { python=${python:-/usr/bin/python} tmpstr="$(${python} -V 2>&1 )" export PYVER_ALL="${tmpstr#Python }" - - export PYVER="${PYVER_ALL%.*}" - export PYVER_MAJOR="${PYVER%.*}" - export PYVER_MINOR="${PYVER##*.}" - export PYVER_MICRO="${PYVER_ALL##*.}" + export PYVER_MAJOR=$(echo ${PYVER_ALL} | cut -d. -f1) + export PYVER_MINOR=$(echo ${PYVER_ALL} | cut -d. -f2) + export PYVER_MICRO=$(echo ${PYVER_ALL} | cut -d. -f3-) + export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}" } # |