diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-02-02 23:39:09 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-02 23:39:09 -0800 |
commit | f3827387522ab3c9fef1c8d5efb56f2eb3e75731 (patch) | |
tree | dbb4cebcf9382e1fd55f6b065fe1b7518113dbd8 | |
parent | 76c386bea08a5d75cfc431fffe64e842aeff5fa9 (diff) | |
download | portage-f3827387522ab3c9fef1c8d5efb56f2eb3e75731.tar.gz portage-f3827387522ab3c9fef1c8d5efb56f2eb3e75731.tar.bz2 portage-f3827387522ab3c9fef1c8d5efb56f2eb3e75731.zip |
depgraph: use catsplit where appropriate
-rw-r--r-- | pym/_emerge/depgraph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 27a854b7c..8f04c44f2 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2624,7 +2624,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 @@ -2642,7 +2642,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 = [] |