When searching for "test" in IUSE, account for IUSE defaults.
authorZac Medico <zmedico@gentoo.org>
Mon, 31 Dec 2007 11:47:05 +0000 (11:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 31 Dec 2007 11:47:05 +0000 (11:47 -0000)
(trunk r9128)

svn path=/main/branches/2.1.2/; revision=9129

pym/portage.py

index a90ae56f5396ca252185136e656c09e9b454617d..90eccf963283cda6e98f0bac0201d64a6af4d802 100644 (file)
@@ -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 \