From 2af5c01beb46ad750ce01094806bd376fcd9a36d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 18 Dec 2007 07:09:00 +0000 Subject: [PATCH] Include masked flags in PORTAGE_IUSE to avoid more false positives in the useq() IUSE check. svn path=/main/trunk/; revision=8949 --- pym/portage/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 1cdbda2c8..f0f80c3f0 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2391,6 +2391,7 @@ class config(object): # # * Flags derived from ARCH # * Flags derived from USE_EXPAND_HIDDEN variables + # * Masked flags, such as those from {,package}use.mask # * Forced flags, such as those from {,package}use.force if self.mycpv: @@ -2410,9 +2411,9 @@ class config(object): if use_expand_hidden.match(x): iuse_implicit.add(x) - # Flags that have been forced. - iuse_implicit.update(x for x in self.useforce \ - if x not in self.usemask) + # Flags that have been masked or forced. + iuse_implicit.update(self.usemask) + iuse_implicit.update(self.useforce) iuse_grep = iuse_implicit.copy() if use_expand_hidden_raw: -- 2.26.2