Use PORTAGE_USE when evaluating LICENSE inside portdbapi.gvisible().
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:33:40 +0000 (06:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:33:40 +0000 (06:33 -0000)
(trunk r12740)

svn path=/main/branches/2.1.6/; revision=12989

pym/portage/dbapi/porttree.py

index bf05531c027c85b7a7e0b84d8bc95079629d7b91..dd2257afea9f2ef2b38913277de2fc49b2ff172c 100644 (file)
@@ -879,7 +879,7 @@ class portdbapi(dbapi):
                                metadata["USE"] = ""
                                if "?" in metadata["LICENSE"]:
                                        self.doebuild_settings.setcpv(mycpv, mydb=metadata)
-                                       metadata["USE"] = self.doebuild_settings.get("USE", "")
+                                       metadata['USE'] = self.doebuild_settings['PORTAGE_USE']
                                try:
                                        if self.mysettings._getMissingLicenses(mycpv, metadata):
                                                continue