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 | dec40a825d5dd07760eb4a8236fbaa102149f39e (patch) | |
tree | 3148fbc6c05005a06223ff1ae1ebcea3df62e8f7 /eclass | |
parent | alpha/ia64/sparc/x86 stable (diff) | |
download | historical-dec40a825d5dd07760eb4a8236fbaa102149f39e.tar.gz historical-dec40a825d5dd07760eb4a8236fbaa102149f39e.tar.bz2 historical-dec40a825d5dd07760eb4a8236fbaa102149f39e.zip |
Use local for local variables.
Diffstat (limited to '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 |