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 1QXzjZ-0007le-UU for garchives@archives.gentoo.org; Sat, 18 Jun 2011 17:55:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BE9DF1C085; Sat, 18 Jun 2011 17:54:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8E0451C085 for ; Sat, 18 Jun 2011 17:54:54 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1F2B61B400D for ; Sat, 18 Jun 2011 17:54:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2C62D8003C for ; Sat, 18 Jun 2011 17:54:53 +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: Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/portageq X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: fed6021192dd59eda1f6b9f3fb227597a83870de Date: Sat, 18 Jun 2011 17:54:53 +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: 999b2514063e499dc8abd08f285f97fe commit: fed6021192dd59eda1f6b9f3fb227597a83870de Author: Zac Medico gentoo org> AuthorDate: Sat Jun 18 17:53:42 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Jun 18 17:53:42 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dfed60211 portageq: fix all_best_visible to fail early This will fix bug #372193. --- bin/portageq | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/portageq b/bin/portageq index fa71388..a13ca99 100755 --- a/bin/portageq +++ b/bin/portageq @@ -461,9 +461,11 @@ def all_best_visible(argv): """ Returns all best_visible packages (without .ebuild). """ - if (len(argv) < 1): - print("ERROR: insufficient parameters!") -=09 + if len(argv) < 1: + sys.stderr.write("ERROR: insufficient parameters!\n") + sys.stderr.flush() + return 2 + #print portage.db[argv[0]]["porttree"].dbapi.cp_all() for pkg in portage.db[argv[0]]["porttree"].dbapi.cp_all(): mybest=3Dportage.best(portage.db[argv[0]]["porttree"].dbapi.match(pkg)= )