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 1Qcdl4-0007Ne-GO for garchives@archives.gentoo.org; Fri, 01 Jul 2011 13:27:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0614534131; Fri, 1 Jul 2011 13:27:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C601E34131 for ; Fri, 1 Jul 2011 13:27:37 +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 427101B401D for ; Fri, 1 Jul 2011 13:27:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A19308003D for ; Fri, 1 Jul 2011 13:27: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: 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: ebb17308212806e44468f520268b3d1441133065 Date: Fri, 1 Jul 2011 13:27: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: 401f2fa437df29c3c5e4a8dc18fc4db3 commit: ebb17308212806e44468f520268b3d1441133065 Author: Zac Medico gentoo org> AuthorDate: Fri Jul 1 13:27:27 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Jul 1 13:27:27 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Debb17308 portageq get_repo_path: output empty if unknown It used to output "None" for unknown repos, which was not intended. --- bin/portageq | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/bin/portageq b/bin/portageq index a13ca99..f0ecbfc 100755 --- a/bin/portageq +++ b/bin/portageq @@ -627,7 +627,10 @@ def get_repo_path(argv): print("ERROR: insufficient parameters!") sys.exit(2) for arg in argv[1:]: - print(portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(arg)) + path =3D portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(arg) + if path is None: + path =3D "" + print(path) =20 def list_preserved_libs(argv): """