summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-31 11:47:05 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-31 11:47:05 +0000
commitaec78ff816c82930bd0429f09ea0a240b2138796 (patch)
tree17d7839d5fe1f12e1ece002aca3f7f8666a0bc29
parentFix config.setcpv() to properly call config.regenerate() in cases (diff)
downloadportage-multirepo-aec78ff816c82930bd0429f09ea0a240b2138796.tar.gz
portage-multirepo-aec78ff816c82930bd0429f09ea0a240b2138796.tar.bz2
portage-multirepo-aec78ff816c82930bd0429f09ea0a240b2138796.zip
When searching for "test" in IUSE, account for IUSE defaults.
(trunk r9128) svn path=/main/branches/2.1.2/; revision=9129
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index a90ae56f..90eccf96 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 \