1 |
commit: 676c6b3845482730d1dec4d683bc6138a5f30727 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 4 06:28:35 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 4 06:28:35 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=676c6b3845482730d1dec4d683bc6138a5f30727 |
7 |
|
8 |
Remove from list by index, not search. |
9 |
|
10 |
--- |
11 |
pym/portage/dep/__init__.py | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py |
15 |
index 68e628b..62e96d2 100644 |
16 |
--- a/pym/portage/dep/__init__.py |
17 |
+++ b/pym/portage/dep/__init__.py |
18 |
@@ -2217,7 +2217,7 @@ def check_required_use(required_use, use, iuse_match): |
19 |
node._satisfied = satisfied |
20 |
if node._parent._operator not in ("||", "^^"): |
21 |
offset = node._parent._children.index(node) |
22 |
- node._parent._children.remove(node) |
23 |
+ node._parent._children.pop(offset) |
24 |
for i, child in enumerate(node._children): |
25 |
node._parent._children.insert(offset + i, child) |
26 |
if isinstance(child, _RequiredUseBranch): |