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 1R7adn-0001af-8m for garchives@archives.gentoo.org; Sat, 24 Sep 2011 22:24:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4106621C0BD; Sat, 24 Sep 2011 22:24:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 164F821C0BD for ; Sat, 24 Sep 2011 22:24:04 +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 91AF81B4004 for ; Sat, 24 Sep 2011 22:24:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C868680042 for ; Sat, 24 Sep 2011 22:24:02 +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: <77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/porttree.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240 Date: Sat, 24 Sep 2011 22:24:02 +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: e5b63a502900b4992e332ecdd6e12a02 commit: 77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240 Author: Zac Medico gentoo org> AuthorDate: Sat Sep 24 22:23:29 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Sep 24 22:23:29 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D77b63ed6 portdbapi.xmatch: fix unknown repo / return empty We want to return an empty list for the match-* methods, otherwise an empty string. --- pym/portage/dbapi/porttree.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.p= y index 9a8f508..d710d64 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -849,7 +849,10 @@ class portdbapi(dbapi): if mydep.repo is not None: mytree =3D self.treemap.get(mydep.repo) if mytree is None: - myval =3D [] + if level.startswith("match-"): + myval =3D [] + else: + myval =3D "" =20 if myval is not None: # Unknown repo, empty result.