summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-16 17:42:36 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-16 17:42:36 +0000
commit5e9af514b281ec7f062ce508d10c201995f41a68 (patch)
treed6810ccb916c32465fc337a6ec973f1bd70362ba
parent341c8c8ed59a438ab9c5441d9aa63d6e8eb17c20 (diff)
downloadportage-5e9af514b281ec7f062ce508d10c201995f41a68.tar.gz
portage-5e9af514b281ec7f062ce508d10c201995f41a68.tar.bz2
portage-5e9af514b281ec7f062ce508d10c201995f41a68.zip
Bug #289068 - Avoid KeyError: USE when depgraph calls _getMissingLicenses.
svn path=/main/trunk/; revision=14610
-rw-r--r--pym/_emerge/depgraph.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 4a178a04e..650c8b199 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -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