diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-31 11:43:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-31 11:43:03 +0000 |
commit | 613a06dfb343e5b5983947435e4dd7918fd0ef13 (patch) | |
tree | 8e4487ae1e0a55b89d8a81c4b2f6117e57f4959c | |
parent | 61226d0851e4d6b3397d99aa9143a4be6456714d (diff) | |
download | portage-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
-rw-r--r-- | pym/portage/__init__.py | 2 |
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 \ |