Updated fix for partially matching use flags.
authorPaul Varner <fuzzyray@gentoo.org>
Thu, 6 Jan 2011 03:23:41 +0000 (21:23 -0600)
committerPaul Varner <fuzzyray@gentoo.org>
Thu, 6 Jan 2011 03:23:41 +0000 (21:23 -0600)
The previous fix would still match a use flag it it started with the
same characters.
This fixes it completely.

bin/euse

index a5159482d97fbe697112a91323bf4b025a68313f..bb207c754cf17dc992ee15214fff5592cfb306a8 100755 (executable)
--- 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