diff options
author | Ulrich Müller <ulm@gentoo.org> | 2017-05-22 13:26:50 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2017-05-22 13:26:50 +0200 |
commit | 3cb21a09eff8693ddd7eb8de3b7903ab623a6c53 (patch) | |
tree | 2275cd15e21a4338f145c786e547e1209c9cc02d | |
parent | Improved error checking in kernel module. (diff) | |
download | eselect-3cb21a09eff8693ddd7eb8de3b7903ab623a6c53.tar.gz eselect-3cb21a09eff8693ddd7eb8de3b7903ab623a6c53.tar.bz2 eselect-3cb21a09eff8693ddd7eb8de3b7903ab623a6c53.zip |
Fix regex in profile module.
* modules/profile.eselect (set_symlink): Fix regex, bug 614008.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | modules/profile.eselect | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2017-05-22 Ulrich Müller <ulm@gentoo.org> + + * modules/profile.eselect (set_symlink): Fix regex, bug 614008. + 2017-05-06 Ulrich Müller <ulm@gentoo.org> * 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}" |