From: Zac Medico Date: Mon, 31 Dec 2007 11:47:05 +0000 (-0000) Subject: When searching for "test" in IUSE, account for IUSE defaults. X-Git-Tag: v2.1.4~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aec78ff816c82930bd0429f09ea0a240b2138796;p=portage.git When searching for "test" in IUSE, account for IUSE defaults. (trunk r9128) svn path=/main/branches/2.1.2/; revision=9129 --- diff --git a/pym/portage.py b/pym/portage.py index a90ae56f5..90eccf963 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1941,7 +1941,7 @@ class config: 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 \