When searching for "test" in IUSE, account for IUSE defaults.
authorZac Medico <zmedico@gentoo.org>
Mon, 31 Dec 2007 11:43:03 +0000 (11:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 31 Dec 2007 11:43:03 +0000 (11:43 -0000)
svn path=/main/trunk/; revision=9128

pym/portage/__init__.py

index c9db5e9fdc28d601b0e535552496ae42fac322b5..a9d430071522732d712cb0e98bb48cf90a8d8b91 100644 (file)
@@ -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 \