diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-05 21:01:08 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-05 21:01:08 -0700 |
commit | fdb147dd0a7e0c9ee6d3d4db00e606e00478c257 (patch) | |
tree | b5cb286fc3155edf527b96b6aa67e70161e1ee89 | |
parent | 76b4a2fdd777f7203428a9c8a5a0c434fff55252 (diff) | |
download | portage-fdb147dd0a7e0c9ee6d3d4db00e606e00478c257.tar.gz portage-fdb147dd0a7e0c9ee6d3d4db00e606e00478c257.tar.bz2 portage-fdb147dd0a7e0c9ee6d3d4db00e606e00478c257.zip |
Use match-all-cpv-only in _show_unsatisfied_dep.
-rw-r--r-- | pym/_emerge/depgraph.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 28a7dd3b9..4540004ae 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2168,7 +2168,7 @@ class depgraph(object): continue match = db.match if hasattr(db, "xmatch"): - cpv_list = db.xmatch("match-all", atom.without_use) + cpv_list = db.xmatch("match-all-cpv-only", atom.without_use) else: cpv_list = db.match(atom.without_use) @@ -2192,16 +2192,12 @@ class depgraph(object): repo = metadata.get('repository') pkg = self._pkg(cpv, pkg_type, root_config, installed=installed, myrepo=repo) + if not atom_set.findAtomForPackage(pkg, + modified_use=self._pkg_use_enabled(pkg)): + continue # 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 - # package does not actually PROVIDE the virtual. - # Filter out any such false matches here. - if not atom_set.findAtomForPackage(pkg, modified_use=self._pkg_use_enabled(pkg)): - continue if pkg in self._dynamic_config._runtime_pkg_mask: backtrack_reasons = \ self._dynamic_config._runtime_pkg_mask[pkg] |