commit: ad4d0511fbbecb1a1134f4d4dacb48454577e59a
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 22 21:24:46 2017 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Sep 22 21:24:46 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad4d0511
eapi7-ver.eclass: Fixup: Assign LC_ALL in the right function.
eclass/eapi7-ver.eclass | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/eclass/eapi7-ver.eclass b/eclass/eapi7-ver.eclass
index 7c5216c4b0a..d1d98231002 100644
--- a/eclass/eapi7-ver.eclass
+++ b/eclass/eapi7-ver.eclass
@@ -182,7 +182,7 @@ ver_rs() {
# Compare two versions <va> and <vb>. If <va> is less than, equal to,
# or greater than <vb>, return 1, 2, or 3 as exit status, respectively.
_ver_compare() {
- local va=${1} vb=${2} a an al as ar b bn bl bs br re
+ local va=${1} vb=${2} a an al as ar b bn bl bs br re LC_ALL=C
re="^([0-9]+(\.[0-9]+)*)([a-z]?)((_(alpha|beta|pre|rc|p)[0-9]*)*)(-r[0-9]+)?$"
@@ -271,7 +271,6 @@ _ver_compare() {
# revision parts), and the comparison is performed according to
# the algorithm specified in the PMS.
ver_test() {
- local LC_ALL=C
local va op vb
if [[ $# -eq 3 ]]; then