From: Zac Medico Date: Mon, 2 May 2011 19:54:54 +0000 (-0700) Subject: emerge: skip misspell suggestion if cp exists X-Git-Tag: v2.2.0_alpha31~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1afde255d556a904148e3ee77c5e82589161ccc5;p=portage.git emerge: skip misspell suggestion if cp exists --- 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()