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 1QGzIe-00055J-Rc for garchives@archives.gentoo.org; Mon, 02 May 2011 20:00:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3BC591C083; Mon, 2 May 2011 20:00:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 016A41C083 for ; Mon, 2 May 2011 20:00:48 +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 53BEA6419F for ; Mon, 2 May 2011 20:00:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8DB2380505 for ; Mon, 2 May 2011 20:00:47 +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: <1afde255d556a904148e3ee77c5e82589161ccc5.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master 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: 1afde255d556a904148e3ee77c5e82589161ccc5 Date: Mon, 2 May 2011 20:00:47 +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: 61dc9c95423e1ddcdee8f0c950994d2d commit: 1afde255d556a904148e3ee77c5e82589161ccc5 Author: Zac Medico gentoo org> AuthorDate: Mon May 2 19:54:54 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon May 2 19:54:54 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D1afde255 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 dd1b5e8..8a76863 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2996,8 +2996,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()