commit: 3cb21a09eff8693ddd7eb8de3b7903ab623a6c53 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon May 22 11:26:50 2017 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> 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 <[email protected]> + + * modules/profile.eselect (set_symlink): Fix regex, bug 614008. + 2017-05-06 Ulrich Müller <[email protected]> * 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}"
