From: | "Michal Gorny (mgorny)" <mgorny@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: scons-utils.eclass |
Date: | Sun, 30 Oct 2011 14:30:03 |
Message-Id: | 20111030142954.5165D2004B@flycatcher.gentoo.org |
1 | mgorny 11/10/30 14:29:54 |
2 | |
3 | Modified: scons-utils.eclass |
4 | Log: |
5 | Fix broken number matching regexp in scons_clean_makeopts(). |
6 | |
7 | Fixes: https://bugs.gentoo.org/show_bug.cgi?id=388961 |
8 | |
9 | Revision Changes Path |
10 | 1.7 eclass/scons-utils.eclass |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/scons-utils.eclass?rev=1.7&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/scons-utils.eclass?rev=1.7&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/scons-utils.eclass?r1=1.6&r2=1.7 |
15 | |
16 | Index: scons-utils.eclass |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/eclass/scons-utils.eclass,v |
19 | retrieving revision 1.6 |
20 | retrieving revision 1.7 |
21 | diff -u -r1.6 -r1.7 |
22 | --- scons-utils.eclass 29 Aug 2011 01:28:10 -0000 1.6 |
23 | +++ scons-utils.eclass 30 Oct 2011 14:29:54 -0000 1.7 |
24 | @@ -1,6 +1,6 @@ |
25 | # Copyright 1999-2010 Gentoo Foundation |
26 | # Distributed under the terms of the GNU General Public License v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/eclass/scons-utils.eclass,v 1.6 2011/08/29 01:28:10 vapier Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/eclass/scons-utils.eclass,v 1.7 2011/10/30 14:29:54 mgorny Exp $ |
29 | |
30 | # @ECLASS: scons-utils.eclass |
31 | # @MAINTAINER: |
32 | @@ -129,7 +129,7 @@ |
33 | ;; |
34 | # need to take a look at the next arg and guess |
35 | --jobs) |
36 | - if [[ ${#} -gt 1 && ${2} =~ [0-9]+ ]]; then |
37 | + if [[ ${#} -gt 1 && ${2} =~ ^[0-9]+$ ]]; then |
38 | new_makeopts="${new_makeopts+${new_makeopts} }${1} ${2}" |
39 | shift |
40 | else |
41 | @@ -153,7 +153,7 @@ |
42 | ;; |
43 | # -j needs to come last |
44 | j) |
45 | - if [[ ${#} -gt 1 && ${2} =~ [0-9]+ ]]; then |
46 | + if [[ ${#} -gt 1 && ${2} =~ ^[0-9]+$ ]]; then |
47 | new_optstr="${new_optstr}j ${2}" |
48 | shift |
49 | else |