Fix breakage in USE_EXPAND wildcard handling, from r12697.
authorZac Medico <zmedico@gentoo.org>
Mon, 23 Feb 2009 23:16:16 +0000 (23:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 23 Feb 2009 23:16:16 +0000 (23:16 -0000)
svn path=/main/trunk/; revision=12702

pym/portage/__init__.py

index 90a3044152e1921efd0928b14045d7c72aa78d0a..e5d4d5158da0c797852d10a8bdb660fff8de5aaf 100644 (file)
@@ -2119,7 +2119,9 @@ class config(object):
                                if ebuild_force_test:
                                        self.usemask.discard("test")
 
-               use.difference_update([x for x in use if x not in iuse_implicit])
+               # Allow _* flags from USE_EXPAND wildcards to pass through here.
+               use.difference_update([x for x in use \
+                       if x not in iuse_implicit and x[-2:] != '_*'])
 
                # Use the calculated USE flags to regenerate the USE_EXPAND flags so
                # that they are consistent. For optimal performance, use slice
@@ -2191,7 +2193,8 @@ class config(object):
                # attribute since we still want to be able to see global USE
                # settings for things like emerge --info.
 
-               self.configdict["pkg"]["PORTAGE_USE"] = " ".join(sorted(use))
+               self.configdict["pkg"]["PORTAGE_USE"] = \
+                       " ".join(sorted(x for x in use if x[-2:] != '_*'))
 
        def _get_implicit_iuse(self):
                """