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 82843139694 for ; Mon, 22 May 2017 11:28:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C537B21C104; Mon, 22 May 2017 11:28:01 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A09A721C104 for ; Mon, 22 May 2017 11:28:01 +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 A9B003416ED for ; Mon, 22 May 2017 11:28:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D9E4F745A for ; Mon, 22 May 2017 11:27:58 +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: <1495452410.3cb21a09eff8693ddd7eb8de3b7903ab623a6c53.ulm@gentoo> Subject: [gentoo-commits] proj/eselect:master commit in: /, modules/ X-VCS-Repository: proj/eselect X-VCS-Files: ChangeLog modules/profile.eselect X-VCS-Directories: / modules/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 3cb21a09eff8693ddd7eb8de3b7903ab623a6c53 X-VCS-Branch: master Date: Mon, 22 May 2017 11:27:58 +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: fb2c70b7-1d2d-4593-83b2-8ae83c56bd73 X-Archives-Hash: cd707e19815ea3f954995d38dd7449e9 commit: 3cb21a09eff8693ddd7eb8de3b7903ab623a6c53 Author: Ulrich Müller gentoo org> AuthorDate: Mon May 22 11:26:50 2017 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon May 22 11:26:50 2017 +0000 URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=3cb21a09 Fix regex in profile module. * modules/profile.eselect (set_symlink): Fix regex, bug 614008. ChangeLog | 4 ++++ modules/profile.eselect | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6deef3a..11bc25d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-05-22 Ulrich Müller + + * modules/profile.eselect (set_symlink): Fix regex, bug 614008. + 2017-05-06 Ulrich Müller * modules/kernel.eselect (do_set): Don't remove the old symlink diff --git a/modules/profile.eselect b/modules/profile.eselect index 8d95c01..c14f394 100644 --- a/modules/profile.eselect +++ b/modules/profile.eselect @@ -98,7 +98,7 @@ set_symlink() { repopath=$(get_repo_path "${repo}") || die -q "get_repo_path failed" # do a reverse lookup and find the arch associated with ${target} parch=$(sed -n -e \ - "s|^\([[:alnum:]_-]\+\)[[:space:]].*${target}[[:space:]].*$|\1|p" \ + "s|^\([[:alnum:]_-]\+\)[[:space:]]\+${target}[[:space:]].*$|\1|p" \ "${repopath}/profiles/profiles.desc") [[ ${arch} != "${parch}" && -z ${force} ]] \ && die -q "${target} is not a valid profile for ${arch}"