From 613a06dfb343e5b5983947435e4dd7918fd0ef13 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 31 Dec 2007 11:43:03 +0000 Subject: [PATCH] When searching for "test" in IUSE, account for IUSE defaults. svn path=/main/trunk/; revision=9128 --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.26.2