summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-31 11:43:03 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-31 11:43:03 +0000
commit613a06dfb343e5b5983947435e4dd7918fd0ef13 (patch)
tree8e4487ae1e0a55b89d8a81c4b2f6117e57f4959c /pym
parent61226d0851e4d6b3397d99aa9143a4be6456714d (diff)
downloadportage-613a06dfb343e5b5983947435e4dd7918fd0ef13.tar.gz
portage-613a06dfb343e5b5983947435e4dd7918fd0ef13.tar.bz2
portage-613a06dfb343e5b5983947435e4dd7918fd0ef13.zip
When searching for "test" in IUSE, account for IUSE defaults.
svn path=/main/trunk/; revision=9128
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
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 \