From aec78ff816c82930bd0429f09ea0a240b2138796 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 31 Dec 2007 11:47:05 +0000 Subject: When searching for "test" in IUSE, account for IUSE defaults. (trunk r9128) svn path=/main/branches/2.1.2/; revision=9129 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') 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 \ -- cgit v1.2.3-1-g7c22