summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-05-02 12:54:54 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-02 12:54:54 -0700
commit1afde255d556a904148e3ee77c5e82589161ccc5 (patch)
tree90556bbaaf94265cba63c4e4f10c2757369a6ab6
parent5f9dedaa14bbb704e055f2fa616821b79f9c6914 (diff)
downloadportage-1afde255d556a904148e3ee77c5e82589161ccc5.tar.gz
portage-1afde255d556a904148e3ee77c5e82589161ccc5.tar.bz2
portage-1afde255d556a904148e3ee77c5e82589161ccc5.zip
emerge: skip misspell suggestion if cp exists
-rw-r--r--pym/_emerge/depgraph.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index dd1b5e843..8a7686365 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -2996,8 +2996,16 @@ class depgraph(object):
writemsg_stdout("\n", noiselevel=-1)
mask_docs = True
else:
+ cp_exists = False
+ if not atom.cp.startswith("null/"):
+ for pkg in self._iter_match_pkgs_any(
+ root_config, Atom(atom.cp)):
+ cp_exists = True
+ break
+
writemsg_stdout("\nemerge: there are no ebuilds to satisfy "+green(xinfo)+".\n", noiselevel=-1)
if isinstance(myparent, AtomArg) and \
+ not cp_exists and \
self._frozen_config.myopts.get(
"--misspell-suggestions", "y") != "n":
cp = myparent.atom.cp.lower()