From: | "Ali Polatel (hawking)" <hawking@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: python.eclass |
Date: | Mon, 01 Sep 2008 14:11:57 |
Message-Id: | E1KaA8I-0008P2-OT@stork.gentoo.org |
1 | hawking 08/09/01 14:11:54 |
2 | |
3 | Modified: python.eclass |
4 | Log: |
5 | Use local for local variables. |
6 | |
7 | Revision Changes Path |
8 | 1.45 eclass/python.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?rev=1.45&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?rev=1.45&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?r1=1.44&r2=1.45 |
13 | |
14 | Index: python.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/python.eclass,v |
17 | retrieving revision 1.44 |
18 | retrieving revision 1.45 |
19 | diff -u -r1.44 -r1.45 |
20 | --- python.eclass 29 Aug 2008 19:28:08 -0000 1.44 |
21 | +++ python.eclass 1 Sep 2008 14:11:54 -0000 1.45 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2008 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.44 2008/08/29 19:28:08 hawking Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.45 2008/09/01 14:11:54 hawking Exp $ |
27 | |
28 | # @ECLASS: python.eclass |
29 | # @MAINTAINER: |
30 | @@ -63,7 +63,7 @@ |
31 | # Run without arguments and it will export the version of python |
32 | # currently in use as $PYVER; sets PYVER/PYVER_MAJOR/PYVER_MINOR |
33 | __python_version_extract() { |
34 | - verstr=$1 |
35 | + local verstr=$1 |
36 | export PYVER_MAJOR=${verstr:0:1} |
37 | export PYVER_MINOR=${verstr:2:1} |
38 | if [ "${verstr:3}x" = ".x" ]; then |