Make FEATURES=test imply USE=test
authorMarius Mauch <genone@gentoo.org>
Thu, 11 Jan 2007 09:09:34 +0000 (09:09 -0000)
committerMarius Mauch <genone@gentoo.org>
Thu, 11 Jan 2007 09:09:34 +0000 (09:09 -0000)
svn path=/main/trunk/; revision=5551

pym/portage.py

index 0f6f183764917f2b8691ca24dfcf23c0f5cc6095..b0505fba97ee391afe3d0cb5f04ac03787e42117 100644 (file)
@@ -1886,6 +1886,11 @@ class config:
 
                usesplit = [ x for x in myflags if \
                        x not in self.usemask]
+
+               # FEATURES=test should imply USE=test
+               if "test" in self.configlist[-1]["FEATURES"] and not "test" in usesplit:
+                       usesplit.append("test")
+
                usesplit.sort()
 
                # Use the calculated USE flags to regenerate the USE_EXPAND flags so