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.1.9.47~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f8c5b27515e6663403c465a88df761235ce513b;p=portage.git emerge: skip misspell suggestion if cp exists --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 8750a18e9..b230635aa 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2792,8 +2792,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()