From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76F6E1396D0 for ; Fri, 22 Sep 2017 21:28:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA191E0BC7; Fri, 22 Sep 2017 21:28:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AAB66E0BC7 for ; Fri, 22 Sep 2017 21:28:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A2586340AC7 for ; Fri, 22 Sep 2017 21:28:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 44DF28F9D for ; Fri, 22 Sep 2017 21:28:22 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1506115486.ad4d0511fbbecb1a1134f4d4dacb48454577e59a.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:eapi7-ver commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/eapi7-ver.eclass X-VCS-Directories: eclass/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: ad4d0511fbbecb1a1134f4d4dacb48454577e59a X-VCS-Branch: eapi7-ver Date: Fri, 22 Sep 2017 21:28:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4713523e-68db-4586-bf36-ab52b710f638 X-Archives-Hash: 149d1f6d68459225cf501b72050b6371 commit: ad4d0511fbbecb1a1134f4d4dacb48454577e59a Author: Ulrich Müller gentoo org> AuthorDate: Fri Sep 22 21:24:46 2017 +0000 Commit: Ulrich Müller gentoo 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 and . If is less than, equal to, # or greater than , 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