From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QHiKJ-0003ja-FT for garchives@archives.gentoo.org; Wed, 04 May 2011 20:05:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93D151C0A8; Wed, 4 May 2011 20:03:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 647231C0A8 for ; Wed, 4 May 2011 20:03:37 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29A942AC039 for ; Wed, 4 May 2011 20:03:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8695980505 for ; Wed, 4 May 2011 20:03:36 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <9f8c5b27515e6663403c465a88df761235ce513b.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/depgraph.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 9f8c5b27515e6663403c465a88df761235ce513b Date: Wed, 4 May 2011 20:03:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: a34ae61a8e5991c2de2546a14d2f5d7a commit: 9f8c5b27515e6663403c465a88df761235ce513b Author: Zac Medico gentoo org> AuthorDate: Mon May 2 19:54:54 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed May 4 19:54:08 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D9f8c5b27 emerge: skip misspell suggestion if cp exists --- pym/_emerge/depgraph.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 8750a18..b230635 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2792,8 +2792,16 @@ class depgraph(object): writemsg_stdout("\n", noiselevel=3D-1) mask_docs =3D True else: + cp_exists =3D False + if not atom.cp.startswith("null/"): + for pkg in self._iter_match_pkgs_any( + root_config, Atom(atom.cp)): + cp_exists =3D True + break + writemsg_stdout("\nemerge: there are no ebuilds to satisfy "+green(xi= nfo)+".\n", noiselevel=3D-1) if isinstance(myparent, AtomArg) and \ + not cp_exists and \ self._frozen_config.myopts.get( "--misspell-suggestions", "y") !=3D "n": cp =3D myparent.atom.cp.lower()