summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2011-01-05 21:23:41 -0600
committerPaul Varner <fuzzyray@gentoo.org>2011-01-05 21:23:41 -0600
commit2321d5d36b4a6321493c041c4b72324b59dd88c6 (patch)
tree225018ccf3b13945a837a7ea7193916db5478867
parenta6ac30531de75d545c843d40e43edb8f39080260 (diff)
downloadgentoolkit-2321d5d36b4a6321493c041c4b72324b59dd88c6.tar.gz
Updated fix for partially matching use flags.
The previous fix would still match a use flag it it started with the same characters. This fixes it completely.
-rwxr-xr-xbin/euse2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/euse b/bin/euse
index a515948..bb207c7 100755
--- a/bin/euse
+++ b/bin/euse
@@ -1103,7 +1103,7 @@ modify_package() {
if [[ "${ACTIVE}" == "-" ]]; then
# If flag is masked, it should be added to package.mask, instead
# of package.use. For now, yield a warning and quit
- if [[ -n $(echo " ${ACTIVE_FLAGS[6]}" | grep " -${flag}") ]]; then
+ if [[ -n $(echo " ${ACTIVE_FLAGS[6]}" | grep " -${flag} ") ]]; then
error "USE flag \"$flag\" is masked. Enabling in package.use will" \
"\nbe ineffective. You may have an incorrect profile selected."
continue