Fix _show_unsatisfied_dep to pass repo to _pkg().
authorZac Medico <zmedico@gentoo.org>
Tue, 5 Oct 2010 03:44:04 +0000 (20:44 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 5 Oct 2010 03:44:04 +0000 (20:44 -0700)
pym/_emerge/depgraph.py

index acca40eb0f6744c48a9c6bda5f21a1310f55770a..27c2b475031e8f8df94478c9e4185c71d379bc0c 100644 (file)
@@ -2186,6 +2186,8 @@ class depgraph(object):
                                                built, installed, db_keys, myrepo=repo, _pkg_use_enabled=self._pkg_use_enabled)
 
                                        if metadata is not None:
+                                               if not repo:
+                                                       repo = metadata.get('repository')
                                                pkg = self._pkg(cpv, pkg_type, root_config,
                                                        installed=installed, myrepo=repo)
                                                # pkg.metadata contains calculated USE for ebuilds,