From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1K2BVs-0000N5-PB for garchives@archives.gentoo.org; Fri, 30 May 2008 20:47:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10892E055D; Fri, 30 May 2008 20:47:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 94353E055D for ; Fri, 30 May 2008 20:47:47 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 3B07B67509 for ; Fri, 30 May 2008 20:47:47 +0000 (UTC) Received: from zmedico by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1K2BVn-0003uY-47 for gentoo-commits@lists.gentoo.org; Fri, 30 May 2008 20:47:43 +0000 To: gentoo-commits@lists.gentoo.org From: "Zac Medico (zmedico)" Subject: [gentoo-commits] portage r10508 - main/branches/2.1.2/pym X-VCS-Repository: portage X-VCS-Revision: 10508 X-VCS-Files: main/branches/2.1.2/pym/portage.py X-VCS-Directories: main/branches/2.1.2/pym X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico Content-Type: text/plain; charset=UTF-8 Message-Id: Sender: Zac Medico Date: Fri, 30 May 2008 20:47:43 +0000 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: f068ca5d-67d8-4b4b-a6da-2800a493f478 X-Archives-Hash: c7507407cbc460a354aa83c1dd8cf99b Author: zmedico Date: 2008-05-30 20:47:42 +0000 (Fri, 30 May 2008) New Revision: 10508 Modified: main/branches/2.1.2/pym/portage.py Log: For consistency, make sure that a normal iterator is always returned from dbapi._iter_match() (and never a list). This way the caller can be sure that the returned object has a next() method. (trunk r10507) Modified: main/branches/2.1.2/pym/portage.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- main/branches/2.1.2/pym/portage.py 2008-05-30 20:46:05 UTC (rev 10507= ) +++ main/branches/2.1.2/pym/portage.py 2008-05-30 20:47:42 UTC (rev 10508= ) @@ -6331,7 +6331,7 @@ self.cp_list(mydep.cp, use_cache=3Duse_cache))) =20 def _iter_match(self, atom, cpv_iter): - cpv_iter =3D match_from_list(atom, cpv_iter) + cpv_iter =3D iter(match_from_list(atom, cpv_iter)) if atom.slot: cpv_iter =3D self._iter_match_slot(atom, cpv_iter) return cpv_iter --=20 gentoo-commits@lists.gentoo.org mailing list