diff options
author | Ali Polatel <hawking@gentoo.org> | 2008-09-01 14:11:54 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2008-09-01 14:11:54 +0000 |
commit | 5d5b2c3a084ad004448c77bdcdedbba6068057ba (patch) | |
tree | 671524a622fd4bf47a928006ef44bb4001b0b552 /eclass/python.eclass | |
parent | alpha/ia64/sparc/x86 stable (diff) | |
download | gentoo-2-5d5b2c3a084ad004448c77bdcdedbba6068057ba.tar.gz gentoo-2-5d5b2c3a084ad004448c77bdcdedbba6068057ba.tar.bz2 gentoo-2-5d5b2c3a084ad004448c77bdcdedbba6068057ba.zip |
Use local for local variables.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r-- | eclass/python.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass index cdf4d3bbf95b..72f5888891de 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.44 2008/08/29 19:28:08 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.45 2008/09/01 14:11:54 hawking Exp $ # @ECLASS: python.eclass # @MAINTAINER: @@ -63,7 +63,7 @@ python_disable_pyc # Run without arguments and it will export the version of python # currently in use as $PYVER; sets PYVER/PYVER_MAJOR/PYVER_MINOR __python_version_extract() { - verstr=$1 + local verstr=$1 export PYVER_MAJOR=${verstr:0:1} export PYVER_MINOR=${verstr:2:1} if [ "${verstr:3}x" = ".x" ]; then |