aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-05-22 13:26:50 +0200
committerUlrich Müller <ulm@gentoo.org>2017-05-22 13:26:50 +0200
commit3cb21a09eff8693ddd7eb8de3b7903ab623a6c53 (patch)
tree2275cd15e21a4338f145c786e547e1209c9cc02d
parentImproved error checking in kernel module. (diff)
downloadeselect-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--ChangeLog4
-rw-r--r--modules/profile.eselect2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6deef3a..11bc25d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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}"