From d7a219e0406979a79713e3e66730a7a9951890ef Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 2 Feb 2011 23:39:09 -0800 Subject: depgraph: use catsplit where appropriate --- pym/_emerge/depgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/_emerge') diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 1a22c1bc6..05f150939 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2629,7 +2629,7 @@ class depgraph(object): writemsg_stdout("\nemerge: there are no ebuilds to satisfy "+green(xinfo)+".\n", noiselevel=-1) if isinstance(myparent, AtomArg): cp = myparent.atom.cp - cat, pkg = cp.split("/") + cat, pkg = portage.catsplit(cp) if cat == "null": cat = None @@ -2647,7 +2647,7 @@ class depgraph(object): else: pkg_to_cp = {} for other_cp in all_cp: - other_pkg = other_cp.split("/")[1] + other_pkg = portage.catsplit(other_cp)[1] pkg_to_cp.setdefault(other_pkg, set()).add(other_cp) pkg_matches = difflib.get_close_matches(pkg, pkg_to_cp) matches = [] -- cgit v1.2.3-1-g7c22