summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Cakebread <pythonhead@gentoo.org>2005-04-23 03:40:10 +0000
committerRob Cakebread <pythonhead@gentoo.org>2005-04-23 03:40:10 +0000
commit47146b78e7b4560e1596c93b64785b44cf51fa4f (patch)
tree1e585dac8b286074161163a1beaea35a57f2ef2f /eclass/python.eclass
parent- move the virtual/baselayout into the alphabetically correct slot (diff)
downloadhistorical-47146b78e7b4560e1596c93b64785b44cf51fa4f.tar.gz
historical-47146b78e7b4560e1596c93b64785b44cf51fa4f.tar.bz2
historical-47146b78e7b4560e1596c93b64785b44cf51fa4f.zip
Fixed problem with bug# 90092
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r--eclass/python.eclass11
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}"
}
#