From: Zac Medico Date: Mon, 31 Dec 2007 11:43:03 +0000 (-0000) Subject: When searching for "test" in IUSE, account for IUSE defaults. X-Git-Tag: v2.2_pre1~78 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=613a06dfb343e5b5983947435e4dd7918fd0ef13;p=portage.git When searching for "test" in IUSE, account for IUSE defaults. svn path=/main/trunk/; revision=9128 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index c9db5e9fd..a9d430071 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -1911,7 +1911,7 @@ class config(object): test_use_changed = False if "test" in self.features: test_use_changed = \ - ("test" in iuse.split()) != \ + bool(re.search(r'(^|\s)[-+]?test(\s|$)', iuse)) != \ ("test" in self.get("PORTAGE_USE","").split()) if self.get("EBUILD_PHASE") or \ self._use_wildcards or \