diff options
| author | Paul Varner <fuzzyray@gentoo.org> | 2011-01-04 16:25:13 -0600 |
|---|---|---|
| committer | Paul Varner <fuzzyray@gentoo.org> | 2011-01-04 16:25:13 -0600 |
| commit | 170fe3a9393d0c68df146b0c4c2c0573ec98fff1 (patch) | |
| tree | 66034a1a75dbf8c71ac6fbe642b0d52711f64b2b /bin/euse | |
| parent | 410dd2e23ef19fd07f6419e163054afacec1e017 (diff) | |
| download | gentoolkit-170fe3a9393d0c68df146b0c4c2c0573ec98fff1.tar.gz | |
Fix bug where a use flag was partially matching a masked use flag.
For example: tk matching gtk3.
Diffstat (limited to 'bin/euse')
| -rwxr-xr-x | bin/euse | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,7 +8,7 @@ # Licensed under the GPL v2 PROGRAM_NAME=euse -VERSION="svn" +VERSION="9999-b62586ede6c2716be976a538d41fac836875ed05" EPREFIX=${EPREFIX:-$(portageq envvar EPREFIX)} ETC="${EPREFIX}/etc" @@ -1092,7 +1092,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 |
