Bug #289068 - Avoid KeyError: USE when depgraph calls _getMissingLicenses.
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Oct 2009 17:42:36 +0000 (17:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Oct 2009 17:42:36 +0000 (17:42 -0000)
svn path=/main/trunk/; revision=14610

pym/_emerge/depgraph.py

index 4a178a04e306089e5efae6f5031cf99e1a01b702..650c8b1993e2e56e2b178bbf4746283f5c30de98 100644 (file)
@@ -2071,6 +2071,9 @@ class depgraph(object):
                                if metadata is not None:
                                        pkg = self._pkg(cpv, pkg_type, root_config,
                                                installed=installed)
+                                       # pkg.metadata contains calculated USE for ebuilds,
+                                       # required later for getMissingLicenses.
+                                       metadata = pkg.metadata
                                        if pkg.cp != atom.cp:
                                                # A cpv can be returned from dbapi.match() as an
                                                # old-style virtual match even in cases when the