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 1PlFB9-0006h4-Mi for garchives@archives.gentoo.org; Fri, 04 Feb 2011 06:29:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2909FE0807; Fri, 4 Feb 2011 06:29:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E7F41E0807 for ; Fri, 4 Feb 2011 06:29:51 +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 5AA941B4007 for ; Fri, 4 Feb 2011 06:29:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AB03A8006A for ; Fri, 4 Feb 2011 06:29:50 +0000 (UTC) To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Content-type: text/plain; charset=UTF-8 Message-ID: <676c6b3845482730d1dec4d683bc6138a5f30727.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master 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: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 676c6b3845482730d1dec4d683bc6138a5f30727 Date: Fri, 4 Feb 2011 06:29:50 +0000 (UTC) From: zmedico@gentoo.org 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: f992699eff488bc35200aa699e6e6445 commit: 676c6b3845482730d1dec4d683bc6138a5f30727 Author: Zac Medico gentoo org> AuthorDate: Fri Feb 4 06:28:35 2011 +0000 Commit: Zac Medico 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=3D676c6b3845482730d1dec4d683bc6138a5f30727 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):