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 <gentoo-commits+bounces-344763-garchives=archives.gentoo.org@lists.gentoo.org>) id 1QKa9V-0003Vl-Nm for garchives@archives.gentoo.org; Thu, 12 May 2011 17:58:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1DFE1C005; Thu, 12 May 2011 17:58:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C40C01C005 for <gentoo-commits@lists.gentoo.org>; Thu, 12 May 2011 17:58:14 +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 4E58F1B4041 for <gentoo-commits@lists.gentoo.org>; Thu, 12 May 2011 17:58:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B714580062 for <gentoo-commits@lists.gentoo.org>; Thu, 12 May 2011 17:58:13 +0000 (UTC) From: "Zac Medico" <zmedico@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" <zmedico@gentoo.org> Message-ID: <c3a191c1c38b98428e457c9e9ab3cf84b773e173.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/_expand_new_virt.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: c3a191c1c38b98428e457c9e9ab3cf84b773e173 Date: Thu, 12 May 2011 17:58:13 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d929f2a9a6267c56b1c67343d69a3f88 commit: c3a191c1c38b98428e457c9e9ab3cf84b773e173 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Thu May 12 17:51:08 2011 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Thu May 12 17:51:41 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dc3a191c1 expand_new_virt: return early for non-virtual cat --- pym/portage/dbapi/_expand_new_virt.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/pym/portage/dbapi/_expand_new_virt.py b/pym/portage/dbapi/_e= xpand_new_virt.py index 6fccd16..6d6a27d 100644 --- a/pym/portage/dbapi/_expand_new_virt.py +++ b/pym/portage/dbapi/_expand_new_virt.py @@ -13,6 +13,11 @@ def expand_new_virt(vardb, atom): """ if not isinstance(atom, Atom): atom =3D Atom(atom) + + if not atom.cp.startswith("virtual/"): + yield atom + return + traversed =3D set() stack =3D [atom] =20