diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-10-18 03:22:11 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-10-18 03:22:11 +0000 |
commit | 1493d477b781fdc1ed1dab49ab32d481ac54ba91 (patch) | |
tree | eb1edbaa8d2f8f68713bf00850a36e6bc92e298c /pym/_emerge/depgraph.py | |
parent | 74870c1015acfcf89de391fca6e24e2c824096c7 (diff) | |
download | portage-1493d477b781fdc1ed1dab49ab32d481ac54ba91.tar.gz portage-1493d477b781fdc1ed1dab49ab32d481ac54ba91.tar.bz2 portage-1493d477b781fdc1ed1dab49ab32d481ac54ba91.zip |
Bug #289068 - Avoid KeyError: USE when depgraph calls _getMissingLicenses.
(trunk r14610)
svn path=/main/branches/2.1.7/; revision=14639
Diffstat (limited to 'pym/_emerge/depgraph.py')
-rw-r--r-- | pym/_emerge/depgraph.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 175cf4f19..b2085a026 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 |