Use PORTAGE_USE when evaluating LICENSE inside portdbapi.gvisible().
authorZac Medico <zmedico@gentoo.org>
Mon, 2 Mar 2009 22:37:58 +0000 (22:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 2 Mar 2009 22:37:58 +0000 (22:37 -0000)
svn path=/main/trunk/; revision=12740

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