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 1PlhL9-0006T5-Ml for garchives@archives.gentoo.org; Sat, 05 Feb 2011 12:34:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FCB5E0907; Sat, 5 Feb 2011 12:34:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4B061E0907 for ; Sat, 5 Feb 2011 12:34:04 +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 95C731B4123 for ; Sat, 5 Feb 2011 12:34:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E073580085 for ; Sat, 5 Feb 2011 12:25:04 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <676c6b3845482730d1dec4d683bc6138a5f30727.grobian@gentoo> Subject: [gentoo-commits] proj/portage:prefix commit in: pym/portage/dep/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dep/__init__.py X-VCS-Directories: pym/portage/dep/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 676c6b3845482730d1dec4d683bc6138a5f30727 Date: Sat, 5 Feb 2011 12:25:04 +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: 4eb1be2149496b1d5d6c22d073a4c220 commit: 676c6b3845482730d1dec4d683bc6138a5f30727 Author: Zac Medico gentoo org> AuthorDate: Fri Feb 4 06:28:35 2011 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Fri Feb 4 06:28:35 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D676c6b38 Remove from list by index, not search. --- pym/portage/dep/__init__.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index 68e628b..62e96d2 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -2217,7 +2217,7 @@ def check_required_use(required_use, use, iuse_matc= h): node._satisfied =3D satisfied if node._parent._operator not in ("||", "^^"): offset =3D node._parent._children.index(node) - node._parent._children.remove(node) + node._parent._children.pop(offset) for i, child in enumerate(node._children): node._parent._children.insert(offset + i, child) if isinstance(child, _RequiredUseBranch):